Some file has ID3 chunk placed after SSND.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
... | ... |
@@ -259,7 +259,7 @@ static int aiff_read_header(AVFormatContext *s) |
259 | 259 |
offset = avio_rb32(pb); /* Offset of sound data */ |
260 | 260 |
avio_rb32(pb); /* BlockSize... don't care */ |
261 | 261 |
offset += avio_tell(pb); /* Compute absolute data offset */ |
262 |
- if (st->codec->block_align) /* Assume COMM already parsed */ |
|
262 |
+ if (st->codec->block_align && !pb->seekable) /* Assume COMM already parsed */ |
|
263 | 263 |
goto got_sound; |
264 | 264 |
if (!pb->seekable) { |
265 | 265 |
av_log(s, AV_LOG_ERROR, "file is not seekable\n"); |