avformat/brstm: lower magic number, fixes decoding of some files
authorPaul B Mahol <onemda@gmail.com>
Sun, 3 Apr 2016 17:12:07 +0000 (19:12 +0200)
committerPaul B Mahol <onemda@gmail.com>
Sun, 3 Apr 2016 17:20:44 +0000 (19:20 +0200)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavformat/brstm.c

index aae2575..6fd44f1 100644 (file)
@@ -169,7 +169,7 @@ static int read_header(AVFormatContext *s)
     }
 
     size = read32(s);
-    if (size < 192)
+    if (size < 40)
         return AVERROR_INVALIDDATA;
     avio_skip(s->pb, 4); // unknown
     h1offset = read32(s);