From c68a8a1340e7c8baa17d2dd9d011571f03053087 Mon Sep 17 00:00:00 2001 From: Matthieu Bouron Date: Sat, 30 Jun 2012 17:53:38 +0200 Subject: lavf/aiffdec: don't stop parsing after SSND chunk Some file has ID3 chunk placed after SSND. Signed-off-by: Michael Niedermayer --- libavformat/aiffdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/aiffdec.c') 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"); -- cgit v1.2.3