From 76466ab214ef20ea628703457bf8d595c4669f8c Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 3 Apr 2016 19:12:07 +0200 Subject: [PATCH] avformat/brstm: lower magic number, fixes decoding of some files Signed-off-by: Paul B Mahol --- libavformat/brstm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/brstm.c b/libavformat/brstm.c index aae2575fb7..6fd44f168d 100644 --- a/libavformat/brstm.c +++ b/libavformat/brstm.c @@ -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);