diff --git a/ffmpeg.c b/ffmpeg.c index 5d6d994d42a86b3edaae6b678c9015247fc4fb41..2cb9132c10cce5890060954f1652198e13fe0e5f 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -883,7 +883,7 @@ static void do_video_out(AVFormatContext *s, *frame_size = 0; - if(video_sync_method>0 || (video_sync_method && av_q2d(enc->time_base) > 0.001)){ + if(video_sync_method){ double vdelta; vdelta = get_sync_ipts(ost) / av_q2d(enc->time_base) - ost->sync_opts; //FIXME set to 0.5 after we fix some dts/pts bugs like in avidec.c