ccconverter: fix overflow when not doing framerate conversion
authorMathieu Duponchelle <mathieu@centricular.com>
Thu, 12 Aug 2021 18:39:24 +0000 (20:39 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 13 Aug 2021 03:37:28 +0000 (03:37 +0000)
commit152813e71de9c634e29be5b1160d94fc09150437
treecce1faa61baa2b343156ce5e35f0ba98df450a93
parent01c430fa45031549ee864cda6c85c29c20ca8364
ccconverter: fix overflow when not doing framerate conversion

When converting from one framerate to another, counters are
reset periodically, however when not converting they never are
and can_genearte_output ends up making overflow-prone calculations
with large values for input_frames and output_frames.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2465>
ext/closedcaption/gstccconverter.c