diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c index 90ff51d8f2..aa52a93dbb 100644 --- a/libavcodec/rv34.c +++ b/libavcodec/rv34.c @@ -1533,7 +1533,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);