If it is too small, the maximum allowed diff becomes 0 samples which would then
trigger if there is no discontinuity at all.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7906>
gst_util_uint64_scale (align->next_offset, GST_SECOND,
ABS (align->rate));
- max_sample_diff =
+ max_sample_diff = MAX (1,
gst_util_uint64_scale_int (align->alignment_threshold,
- ABS (align->rate), GST_SECOND);
+ ABS (align->rate), GST_SECOND));
/* Discont! */
if (G_UNLIKELY (diff >= max_sample_diff)) {