diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-03 09:47:39 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-03 10:20:29 +0200 |
commit | bd70303ead786f00df6b09219ea68967799aed1a (patch) | |
tree | 724155ea5f850d4af6b75cc6a0f0ce0ea45f4f09 /libavformat/swfdec.c | |
parent | 32f53958b8f6ed4c3c2a7447c1e47d012796fae2 (diff) | |
download | ffmpeg-bd70303ead786f00df6b09219ea68967799aed1a.tar.gz |
avformat/swfdec: Check return value of init_get_bits8()
Fixes: CID1322320
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/swfdec.c')
-rw-r--r-- | libavformat/swfdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/swfdec.c b/libavformat/swfdec.c index 74531d8888..68cd8561fb 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); |