summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/vo_lavc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_lavc.c b/video/out/vo_lavc.c
index 706fb53ef7..d5cf263ce2 100644
--- a/video/out/vo_lavc.c
+++ b/video/out/vo_lavc.c
@@ -408,7 +408,7 @@ static void draw_image_unlocked(struct vo *vo, mp_image_t *mpi)
if (vc->lastipts != AV_NOPTS_VALUE) {
// we have a valid image in lastimg
- while (vc->lastipts < frameipts) {
+ while (vc->lastimg && vc->lastipts < frameipts) {
int64_t thisduration = vc->harddup ? 1 : (frameipts - vc->lastipts);
AVPacket packet;