diff options
author | Gyan Doshi <ffmpeg@gyani.pro> | 2020-01-03 12:30:09 +0530 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2020-01-05 12:01:46 +0530 |
commit | 5d82c078ea93d7eee12ff863a4f9eb5fb2d30d16 (patch) | |
tree | 3a1acba306ed8ac81be91a9b9148b69671125f08 /fftools/ffmpeg.c | |
parent | fa3ad7bbc68d33a08f6b3a03d097ecf37670059d (diff) | |
download | ffmpeg-5d82c078ea93d7eee12ff863a4f9eb5fb2d30d16.tar.gz |
ffmpeg: don't force source-tracked keyframes for duplicates
Prevents a run of consecutive duplicate frames from all being encoded
as keyframes, when force_key_frames is set to source.
Diffstat (limited to 'fftools/ffmpeg.c')
-rw-r--r-- | fftools/ffmpeg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 2c5fcc0532..6bcd7b94d2 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -1266,7 +1266,8 @@ static void do_video_out(OutputFile *of, ost->forced_keyframes_expr_const_values[FKF_N] += 1; } else if ( ost->forced_keyframes && !strncmp(ost->forced_keyframes, "source", 6) - && in_picture->key_frame==1) { + && in_picture->key_frame==1 + && !i) { forced_keyframe = 1; } |