Avoid NULL dereference on corrupted bitstream with real decoder.
[ffmpeg.git] / libavcodec / rv34.c
index ca727a5..963bd1e 100644 (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);