Browse Source

Avoid NULL dereference on corrupted bitstream with real decoder.

rv34_decode_slice() can return without allocating any pictures.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Laurent Aimar Michael Niedermayer 14 years ago
parent
commit
140dbcff35
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/rv34.c

+ 1
- 1
libavcodec/rv34.c View File

@@ -1538,7 +1538,7 @@ int ff_rv34_decode_frame(AVCodecContext *avctx,
break;
}

if(last){
if(last && s->current_picture_ptr){
if(r->loop_filter)
r->loop_filter(r, s->mb_height - 1);
ff_er_frame_end(s);


Loading…
Cancel
Save