---
fftools/ffmpeg.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 46bb014de8..8085442156 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -1238,8 +1238,9 @@ static void do_video_out(OutputFile *of,
nb_frames = 0;
} else if (delta < -1.1)
nb_frames = 0;
- else if (delta > 1.1) {
- nb_frames = lrintf(delta);
+ // let the CFR frame go backward by at most one frame duration
with respect to the original VFR
+ else if (delta >= 2) {
+ nb_frames = floor(delta);
if (delta0 > 1.1)
nb0_frames = llrintf(delta0 - 0.6);
}
--
2.27.0
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".