Commit 0acc88cd authored by Max Kellermann's avatar Max Kellermann

Merge branch 'v0.19.x'

parents 3392cbbd 1e0ad1f6
...@@ -47,6 +47,12 @@ ver 0.20 (not yet released) ...@@ -47,6 +47,12 @@ ver 0.20 (not yet released)
* update * update
- apply .mpdignore matches to subdirectories - apply .mpdignore matches to subdirectories
ver 0.19.13 (not yet released)
* tags
- aiff, riff: fix ID3 chunk padding
* decoder
- ffmpeg: support the TAK codec
ver 0.19.12 (2015/12/15) ver 0.19.12 (2015/12/15)
* fix assertion failure on malformed UTF-8 tag * fix assertion failure on malformed UTF-8 tag
* fix build failure on non-Linux systems * fix build failure on non-Linux systems
......
...@@ -84,14 +84,14 @@ aiff_seek_id3(FILE *file) ...@@ -84,14 +84,14 @@ aiff_seek_id3(FILE *file)
underflow when casting to off_t */ underflow when casting to off_t */
return 0; return 0;
if (size % 2 != 0)
/* pad byte */
++size;
if (memcmp(chunk.id, "ID3 ", 4) == 0) if (memcmp(chunk.id, "ID3 ", 4) == 0)
/* found it! */ /* found it! */
return size; return size;
if (size % 2 != 0)
/* pad byte */
++size;
if (fseek(file, size, SEEK_CUR) != 0) if (fseek(file, size, SEEK_CUR) != 0)
return 0; return 0;
} }
......
...@@ -82,15 +82,15 @@ riff_seek_id3(FILE *file) ...@@ -82,15 +82,15 @@ riff_seek_id3(FILE *file)
underflow when casting to off_t */ underflow when casting to off_t */
return 0; return 0;
if (size % 2 != 0)
/* pad byte */
++size;
if (memcmp(chunk.id, "id3 ", 4) == 0 || if (memcmp(chunk.id, "id3 ", 4) == 0 ||
memcmp(chunk.id, "ID3 ", 4) == 0) memcmp(chunk.id, "ID3 ", 4) == 0)
/* found it! */ /* found it! */
return size; return size;
if (size % 2 != 0)
/* pad byte */
++size;
if (fseek(file, size, SEEK_CUR) != 0) if (fseek(file, size, SEEK_CUR) != 0)
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment