Commit 140dbcff authored by Laurent Aimar's avatar Laurent Aimar Committed by Michael Niedermayer

Avoid NULL dereference on corrupted bitstream with real decoder.

rv34_decode_slice() can return without allocating any pictures.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d788af6c
...@@ -1538,7 +1538,7 @@ int ff_rv34_decode_frame(AVCodecContext *avctx, ...@@ -1538,7 +1538,7 @@ int ff_rv34_decode_frame(AVCodecContext *avctx,
break; break;
} }
if(last){ if(last && s->current_picture_ptr){
if(r->loop_filter) if(r->loop_filter)
r->loop_filter(r, s->mb_height - 1); r->loop_filter(r, s->mb_height - 1);
ff_er_frame_end(s); ff_er_frame_end(s);
......
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