mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 00:45:56 +00:00
codectimestamper: Fix for unknown framerate
Use default framerate if numerator or denominator is unknown Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3031>
This commit is contained in:
parent
e866c1d967
commit
4db55bc759
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ gst_codec_timestamper_set_caps (GstCodecTimestamper * self, GstCaps * caps)
|
|||
|
||||
gst_structure_get_fraction (s, "framerate", &priv->fps_n, &priv->fps_d);
|
||||
|
||||
if (priv->fps_n <= 0 && priv->fps_d <= 0) {
|
||||
if (priv->fps_n <= 0 || priv->fps_d <= 0) {
|
||||
GST_WARNING_OBJECT (self, "Unknown frame rate, assume 25/1");
|
||||
priv->fps_n = 25;
|
||||
priv->fps_d = 1;
|
||||
|
|
Loading…
Reference in a new issue