video: timecode: Add support for framerates lower than 1fps
authorSebastian Dröge <sebastian@centricular.com>
Mon, 10 Apr 2023 09:54:51 +0000 (12:54 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 19 Jul 2023 14:59:19 +0000 (15:59 +0100)
commit6910a24c1437a0e49c21a51d147d66688fa5336c
tree994fcc04111030e3020ab4bfd5ef1159cc4fdefb
parenteb89e0a13eeb59fc5bab787ded50faf6a50087e3
video: timecode: Add support for framerates lower than 1fps

These are not explicitly defined but the existing calculations can be
extended to also cover that case by inverting them to avoid floating
point calculations.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2465

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5074>
subprojects/gst-plugins-base/gst-libs/gst/video/gstvideotimecode.c
subprojects/gst-plugins-base/tests/check/libs/videotimecode.c