diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2018-12-14 14:13:18 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2019-05-01 17:27:51 +0100 |
commit | eae44e51b53d46d8a12c51567030885f8a909daa (patch) | |
tree | d3afa0de75762dbd5f8d842b1468524d2649026d | |
parent | 4b3f146c42ad519b5ef50f98de070138dec0201a (diff) | |
download | gstreamer-plugins-base-eae44e51b53d46d8a12c51567030885f8a909daa.tar.gz |
videotimecode: We only support 30000/1001 and 60000/1001 as drop-frame framerates
24000/1001 is *not* a drop-frame framerate.
-rw-r--r-- | gst-libs/gst/video/gstvideotimecode.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gst-libs/gst/video/gstvideotimecode.c b/gst-libs/gst/video/gstvideotimecode.c index 73ab27f96..2b02e217d 100644 --- a/gst-libs/gst/video/gstvideotimecode.c +++ b/gst-libs/gst/video/gstvideotimecode.c @@ -91,6 +91,14 @@ gst_video_time_code_is_valid (const GstVideoTimeCode * tc) return FALSE; } + /* We only support 30000/1001 and 60000/1001 as drop-frame framerates. + * 24000/1001 is *not* a drop-frame framerate! */ + if (tc->config.flags & GST_VIDEO_TIME_CODE_FLAGS_DROP_FRAME) { + if (tc->config.fps_d != 1001 || (tc->config.fps_n != 30000 + && tc->config.fps_n != 60000)) + return FALSE; + } + /* Drop-frame framerates require skipping over the first two * timecodes every minutes except for every tenth minute in case * of 30000/1001 and the first four timecodes for 60000/1001 */ |