]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/rv34.c
Merge commit '16b7328058fa600d5158c84d9cc621a134eb88bc'
[ffmpeg] / libavcodec / rv34.c
index 873ec3c5a845c78a3d500ac40c18d3f73a80316a..d82b41e2a0660a8d9ae09b3f951070cd7cd54867 100644 (file)
@@ -1685,7 +1685,7 @@ int ff_rv34_decode_frame(AVCodecContext *avctx,
 
     /* first slice */
     if (si.start == 0) {
-        if (s->mb_num_left > 0) {
+        if (s->mb_num_left > 0 && s->current_picture_ptr) {
             av_log(avctx, AV_LOG_ERROR, "New frame but still %d MB left.\n",
                    s->mb_num_left);
             ff_er_frame_end(&s->er);