summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/decode/vd_lavc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index a7ebc22b20..864da74741 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -757,8 +757,9 @@ static int decode(struct dec_video *vd, struct demux_packet *packet,
}
*reordered_pts = (union pts){.i = pic->reordered_opaque}.d;
+ // Skipped frame, or delayed output due to multithreaded decoding.
if (!got_picture)
- return 0; // skipped image
+ return 0;
update_image_params(vd, pic);