summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 8d2cbe3cef..1ba0a42058 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1031,6 +1031,9 @@ static void do_video_out(AVFormatContext *s,
} else
in_picture = next_picture;
+ if (!in_picture)
+ return;
+
in_picture->pts = ost->sync_opts;
#if 1