aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-01 18:35:58 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-01 18:46:22 +0100
commitb50be4e38dc83389925dc14f24fa11e660d32197 (patch)
tree5fb738953092322372c21e033517e727a24068c1
parentd9cc6bb4324821853d56a44bb6b1bc6172ebeb6e (diff)
downloadffmpeg-b50be4e38dc83389925dc14f24fa11e660d32197.tar.gz
vc1_parser: fix NULL pointer dereference
Fixes Ticket456 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/vc1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index 0dbe48d73c..775caa69f8 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -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;