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