cccombiner: Avoid dividing by zero framerate
This was broken in b29262e662b86cd76225894f7504ee505125fa49. The `gst_util_uint64_scale` emitted a critical warning and returned `GST_CLOCK_TIME_NONE`, so beyond removing the warning this fix does not change behavior. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9415>
This commit is contained in:
parent
71619ec72b
commit
1428a86783
@ -934,7 +934,7 @@ gst_cc_combiner_sink_event (GstAggregator * aggregator,
|
||||
self->progressive = !interlace_mode
|
||||
|| !g_strcmp0 (interlace_mode, "progressive");
|
||||
|
||||
if (fps_d > 0)
|
||||
if (fps_n > 0 && fps_d > 0)
|
||||
frame_duration = gst_util_uint64_scale (GST_SECOND, fps_d, fps_n);
|
||||
if (!GST_CLOCK_TIME_IS_VALID (frame_duration) || frame_duration == 0)
|
||||
frame_duration = FALLBACK_FRAME_DURATION;
|
||||
|
Loading…
x
Reference in New Issue
Block a user