You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
vc1_parser: fix NULL pointer dereference
Fixes Ticket456 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user