~ft/libtags

Don't null-terminate already null-terminated strings

This was causing issues with genre tags sourced from id3genres (I think
all m4a files with genres might be affected?). id3genres is const, so
even when the write is a no-op, attempting it caused a segfault
libtags: opus/vorbis: make sure to get to the last frame to have the full duration
libtags: vorbis, opus: ignore tags past the ogg page

As it is implemented right now, OGG pages are not treated properly,
so in case of huge embedded pictures inside metadata the file could
end up ignore by audio/readtags and audio/mkplist. Workaround by
ignoring tags that span across pages for now.
libtags: try other formats after id3v2 is found

Even though a valid id3v2 tag header may be present, the file format
itself might not be mp3. Instead, retry other format parsers on the
file after seeking right past the id3v2 header. This fixes FLACs that
are ID3v2-tagged (the reasoning behind that is left with no comment).

Also convert "TLEN" into duration while at it.
fe4a4fbb — Sigrid Solveig Haflínudóttir 1 year, 5 months ago
wav: do not div by zero; validate sample rate and number of channels
880732bb — Sigrid Solveig Haflínudóttir 1 year, 5 months ago
m4a: do not div by zero
f6b8f1a9 — Sigrid Solveig Haflínudóttir 1 year, 5 months ago
id3v2: make sure extra id3 tag does not cause infinite loop
7fcd3791 — Sigrid Solveig Haflínudóttir 1 year, 5 months ago
flac: check sample rate before dividing by zero; also check number of channels
94672541 — Sigrid Solveig Haflínudóttir 1 year, 6 months ago
fix unix build
75b18540 — Sigrid Solveig Haflínudóttir 1 year, 10 months ago
sync with 9front changes
0a1bab10 — Sigrid Solveig Haflínudóttir 2 years ago
mod: simplify a bit
991b8b01 — Sigrid Solveig Haflínudóttir 2 years ago
fix string trimming on non-latin chars
55726cd4 — Sigrid Solveig Haflínudóttir 2 years ago
do not set tag bit in ctx.found unless the value is non-empty
ce2aea9a — Sigrid Solveig Haflínudóttir 2 years ago
xm: case-insensitive strcmp, some files are apparently different (thanks kemal)
9d8c7874 — Sigrid Solveig Haflínudóttir 2 years ago
it, mod: use ISO-8859-1 (thanks kemal)
36280121 — Sigrid Solveig Haflínudóttir 2 years ago
mod: add another variant (thanks kemal)
50089a7b — Sigrid Solveig Haflínudóttir 2 years ago
gcc so fragile...
3ab23ef2 — Sigrid Solveig Haflínudóttir 2 years ago
use nelem
3e370bf9 — Sigrid Solveig Haflínudóttir 2 years ago
make it build on non-9 systems again
173b32f0 — Sigrid Solveig Haflínudóttir 2 years ago
trim text tags and ignore empty values
Next