mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 05:00:37 +00:00
vc1_parser: fix NULL pointer dereference
Fixes Ticket456 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d9cc6bb432
commit
b50be4e38d
@ -896,6 +896,8 @@ int vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb)
|
||||
v->rnd = get_bits1(gb);
|
||||
if (v->interlace)
|
||||
v->uvsamp = get_bits1(gb);
|
||||
if(!ff_vc1_bfraction_vlc.table)
|
||||
return 0; //parsing only, vlc tables havnt been allocated
|
||||
if (v->field_mode) {
|
||||
if (!v->refdist_flag)
|
||||
v->refdist = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user