]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vc1dec.c
Merge commit 'a097f0049b28dc3ed13625e4a42619292c92492f'
[ffmpeg] / libavcodec / vc1dec.c
index a81f96182b002fb5fbb8dcac96ebbb2694b6f590..d6756594bcb96d466a1c8bacfdf8982df3d66f43 100644 (file)
@@ -6212,12 +6212,11 @@ image:
             if ((ret = av_frame_ref(pict, &s->current_picture_ptr->f)) < 0)
                 goto err;
             ff_print_debug_info(s, s->current_picture_ptr, pict);
+            *got_frame = 1;
         } else if (s->last_picture_ptr != NULL) {
             if ((ret = av_frame_ref(pict, &s->last_picture_ptr->f)) < 0)
                 goto err;
             ff_print_debug_info(s, s->last_picture_ptr, pict);
-        }
-        if (s->last_picture_ptr || s->low_delay) {
             *got_frame = 1;
         }
     }