mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-11 18:09:36 +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);
|
v->rnd = get_bits1(gb);
|
||||||
if (v->interlace)
|
if (v->interlace)
|
||||||
v->uvsamp = get_bits1(gb);
|
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->field_mode) {
|
||||||
if (!v->refdist_flag)
|
if (!v->refdist_flag)
|
||||||
v->refdist = 0;
|
v->refdist = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user