Commit b50be4e3 authored by Michael Niedermayer's avatar Michael Niedermayer

vc1_parser: fix NULL pointer dereference

Fixes Ticket456
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d9cc6bb4
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment