Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-02-24 18:06:17 +0300
committerMichael Niedermayer <michaelni@gmx.at>2009-02-24 18:06:17 +0300
commitad48c9f0b833c61ee6b883b9492d79d0a449ee44 (patch)
treebc10244e184eb39b2b6db27ccdae7cca0a659a1f /ffmpeg.c
parent259182121336fdb1d15be50b3693904f1e2879e7 (diff)
Do not duplicate frames if the muxer claims that it is not needed.
Note to release manager, this is risky and should be reverted if it causes any problem. Originally committed as revision 17555 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 3c5e333ac4..79ad1a4263 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -865,7 +865,7 @@ static void do_video_out(AVFormatContext *s,
//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)
+ else if (video_sync_method == 2 || (video_sync_method<0 && (s->oformat->flags & AVFMT_VARIABLE_FPS)))
ost->sync_opts= lrintf(get_sync_ipts(ost) / av_q2d(enc->time_base));
else if (vdelta > 1.1)
nb_frames = lrintf(vdelta);