mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-11 06:58:18 +00:00
lavc/mvha: Check init_get_bits8() for failure
fix potential null pointer dereference Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
This commit is contained in:
parent
d965589022
commit
2952d9c5dc
@ -190,7 +190,9 @@ static int decode_frame(AVCodecContext *avctx,
|
||||
GetBitContext *gb = &s->gb;
|
||||
int first_symbol, symbol;
|
||||
|
||||
init_get_bits8(gb, avpkt->data + 8, avpkt->size - 8);
|
||||
ret = init_get_bits8(gb, avpkt->data + 8, avpkt->size - 8);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
skip_bits(gb, 24);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user