]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/aiffdec.c
Merge commit 'a2664c91fba15a1307f676ffad511f8f86fb3a27'
[ffmpeg] / libavformat / aiffdec.c
index 2c2b693d14990d5f93862a3c2de8eb221d617c73..56338c0f9d06308d46ad36f03817745be65d95cc 100644 (file)
@@ -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");