Browse Source

cavsdec: ensure the tables have been allocated before using them

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
ec0965be36
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/cavsdec.c

+ 2
- 0
libavcodec/cavsdec.c View File

@@ -697,6 +697,8 @@ static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size,
*data_size = 0;
if(!h->got_keyframe)
break;
if(!h->top_qp)
break;
init_get_bits(&s->gb, buf_ptr, input_size);
h->stc = stc;
if(decode_pic(h))


Loading…
Cancel
Save