videotimecode: Allow 24000/1001 frame rate
authorGeorg Lippitsch <glippitsch@toolsonair.com>
Wed, 13 Dec 2017 11:30:54 +0000 (12:30 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 14 May 2018 17:32:48 +0000 (20:32 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=796107

gst-libs/gst/video/gstvideotimecode.c

index 400c224..a2e1ded 100644 (file)
@@ -79,7 +79,8 @@ gst_video_time_code_is_valid (const GstVideoTimeCode * tc)
   if (tc->frames >= fr && (tc->config.fps_n != 0 || tc->config.fps_d != 1))
     return FALSE;
   if (tc->config.fps_d == 1001) {
-    if (tc->config.fps_n != 30000 && tc->config.fps_n != 60000)
+    if (tc->config.fps_n != 30000 && tc->config.fps_n != 60000 &&
+        tc->config.fps_n != 24000)
       return FALSE;
   } else if (tc->config.fps_n % tc->config.fps_d != 0) {
     return FALSE;