[FFmpeg-cvslog] fftools/ffmpeg: Fix runlength for strncmp()

Thilo Borgmann git at videolan.org
Mon Jul 19 22:23:28 EEST 2021


ffmpeg | branch: master | Thilo Borgmann <thilo.borgmann at mail.de> | Mon Jul 19 21:23:02 2021 +0200| [05c9f6f4ef818cf1e7fdef8e118c9497e58326af] | committer: Thilo Borgmann

fftools/ffmpeg: Fix runlength for strncmp()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=05c9f6f4ef818cf1e7fdef8e118c9497e58326af
---

 fftools/ffmpeg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index a2dca146fe..40e8010096 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -1349,7 +1349,7 @@ static void do_video_out(OutputFile *of,
                    && !i) {
             forced_keyframe = 1;
         } else if (   ost->forced_keyframes
-                   && !strncmp(ost->forced_keyframes, "source_no_drop", 6)
+                   && !strncmp(ost->forced_keyframes, "source_no_drop", 14)
                    && !i) {
             forced_keyframe = (in_picture->key_frame == 1) || ost->dropped_keyframe;
             ost->dropped_keyframe = 0;



More information about the ffmpeg-cvslog mailing list