avformat/swfdec: Check return value of init_get_bits8()
Fixes: CID1322320 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
32f53958b8
commit
bd70303ead
@ -72,7 +72,8 @@ static int swf_probe(AVProbeData *p)
|
|||||||
&& p->buf[3] <= 20)
|
&& p->buf[3] <= 20)
|
||||||
return AVPROBE_SCORE_MAX / 4 + 1;
|
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);
|
skip_bits(&gb, 40);
|
||||||
len = get_bits(&gb, 5);
|
len = get_bits(&gb, 5);
|
||||||
|
Loading…
Reference in New Issue
Block a user