aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@gmail.com>2012-06-30 17:53:38 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-22 19:38:27 +0200
commitc68a8a1340e7c8baa17d2dd9d011571f03053087 (patch)
treecea976beb67595c32616fb781d03dec4ed079549
parentd8173f264f732a4d14220816de2e54642115e2a7 (diff)
downloadffmpeg-c68a8a1340e7c8baa17d2dd9d011571f03053087.tar.gz
lavf/aiffdec: don't stop parsing after SSND chunk
Some file has ID3 chunk placed after SSND. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/aiffdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/aiffdec.c b/libavformat/aiffdec.c
index 2c2b693d14..56338c0f9d 100644
--- a/libavformat/aiffdec.c
+++ b/libavformat/aiffdec.c
@@ -259,7 +259,7 @@ static int aiff_read_header(AVFormatContext *s)
offset = avio_rb32(pb); /* Offset of sound data */
avio_rb32(pb); /* BlockSize... don't care */
offset += avio_tell(pb); /* Compute absolute data offset */
- if (st->codec->block_align) /* Assume COMM already parsed */
+ if (st->codec->block_align && !pb->seekable) /* Assume COMM already parsed */
goto got_sound;
if (!pb->seekable) {
av_log(s, AV_LOG_ERROR, "file is not seekable\n");