From ae7ecfceed5763097d2e40e315cea2cdae168071 Mon Sep 17 00:00:00 2001 From: Vivia Nikolaidou Date: Mon, 3 Sep 2018 15:15:45 +0300 Subject: [PATCH] timecodestamper: Fix typo in set_drop_frame Was checking if fps_d == 60000 (instead of fps_n), causing 60000/1001 to be always falsely interpreted as non-drop-frame --- gst/timecode/gsttimecodestamper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/timecode/gsttimecodestamper.c b/gst/timecode/gsttimecodestamper.c index b3c513c..31cfce2 100644 --- a/gst/timecode/gsttimecodestamper.c +++ b/gst/timecode/gsttimecodestamper.c @@ -263,7 +263,7 @@ gst_timecodestamper_set_drop_frame (GstTimeCodeStamper * timecodestamper) { if (timecodestamper->drop_frame && timecodestamper->vinfo.fps_d == 1001 && (timecodestamper->vinfo.fps_n == 30000 || - timecodestamper->vinfo.fps_d == 60000)) + timecodestamper->vinfo.fps_n == 60000)) timecodestamper->current_tc->config.flags |= GST_VIDEO_TIME_CODE_FLAGS_DROP_FRAME; else -- 2.7.4