rtpbin: Fix division by zero when using ts-offset-smoothing-factor
authorRobert Rosengren <robertr@axis.com>
Mon, 11 Apr 2022 11:40:56 +0000 (13:40 +0200)
committerRobert Rosengren <robertr@axis.com>
Mon, 11 Apr 2022 13:29:49 +0000 (15:29 +0200)
commite4a6521ac72c195c3ce0f95fd203ef56839bf7bd
tree10dfcba9bc0161845a684e62910817e0dc5ebfed
parentad434759a944816108060d131f0ff92f57c7bf90
rtpbin: Fix division by zero when using ts-offset-smoothing-factor

avg_ts_offset may cause division by zero when calculating potential
overflow protection. This fix will avoid the division.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2151>
subprojects/gst-plugins-good/gst/rtpmanager/gstrtpbin.c