[FFmpeg-cvslog] lavf/brstm: allow larger block sizes

Rodger Combs git at videolan.org
Sat Jun 20 19:50:05 CEST 2015


ffmpeg | branch: master | Rodger Combs <rodger.combs at gmail.com> | Sat Jun 20 05:01:16 2015 -0500| [db426031dd27d28df76e833da7f4490c11240981] | committer: Michael Niedermayer

lavf/brstm: allow larger block sizes

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=db426031dd27d28df76e833da7f4490c11240981
---

 libavformat/brstm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/brstm.c b/libavformat/brstm.c
index 15e63b8..564be16 100644
--- a/libavformat/brstm.c
+++ b/libavformat/brstm.c
@@ -223,7 +223,7 @@ static int read_header(AVFormatContext *s)
     }
 
     b->block_size = read32(s);
-    if (b->block_size > UINT16_MAX / st->codec->channels)
+    if (b->block_size > UINT32_MAX / st->codec->channels)
         return AVERROR_INVALIDDATA;
     b->block_size *= st->codec->channels;
 



More information about the ffmpeg-cvslog mailing list