[FFmpeg-cvslog] r11934 - trunk/ffmpeg.c
michael
subversion
Thu Feb 14 19:53:12 CET 2008
Author: michael
Date: Thu Feb 14 19:53:12 2008
New Revision: 11934
Log:
-vsync 2 (drop frames if there are too many but dont duplicate any)
Modified:
trunk/ffmpeg.c
Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c (original)
+++ trunk/ffmpeg.c Thu Feb 14 19:53:12 2008
@@ -733,6 +733,8 @@ static void do_video_out(AVFormatContext
//FIXME set to 0.5 after we fix some dts/pts bugs like in avidec.c
if (vdelta < -1.1)
nb_frames = 0;
+ else if (video_sync_method == 2)
+ ost->sync_opts= lrintf(get_sync_ipts(ost) / av_q2d(enc->time_base));
else if (vdelta > 1.1)
nb_frames = lrintf(vdelta);
//fprintf(stderr, "vdelta:%f, ost->sync_opts:%"PRId64", ost->sync_ipts:%f nb_frames:%d\n", vdelta, ost->sync_opts, ost->sync_ipts, nb_frames);
More information about the ffmpeg-cvslog
mailing list