[FFmpeg-cvslog] avformat/swfdec: Check return value of init_get_bits8()
Michael Niedermayer
git at videolan.org
Thu Sep 3 10:29:49 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Sep 3 09:47:39 2015 +0200| [bd70303ead786f00df6b09219ea68967799aed1a] | committer: Michael Niedermayer
avformat/swfdec: Check return value of init_get_bits8()
Fixes: CID1322320
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bd70303ead786f00df6b09219ea68967799aed1a
---
libavformat/swfdec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/swfdec.c b/libavformat/swfdec.c
index 74531d8..68cd856 100644
--- a/libavformat/swfdec.c
+++ b/libavformat/swfdec.c
@@ -72,7 +72,8 @@ static int swf_probe(AVProbeData *p)
&& p->buf[3] <= 20)
return AVPROBE_SCORE_MAX / 4 + 1;
- init_get_bits8(&gb, p->buf + 3, p->buf_size - 3);
+ if (init_get_bits8(&gb, p->buf + 3, p->buf_size - 3) < 0)
+ return 0;
skip_bits(&gb, 40);
len = get_bits(&gb, 5);
More information about the ffmpeg-cvslog
mailing list