rtpvp8pay: move duplicate code to separate functions
authorMikhail Fludkov <misha@pexip.com>
Thu, 16 Mar 2017 14:23:28 +0000 (15:23 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 16 Oct 2020 09:25:10 +0000 (09:25 +0000)
commit543b7e502469453b30bf97b8be71aed19042dd22
treee9ea8c729283abfef704b3fdb5af70d2bd8101d3
parentba4b9971e93e269bd99e1be0f54cd1b3d9471c37
rtpvp8pay: move duplicate code to separate functions

Two new functions to modify picture id:
gst_rtp_vp8_pay_picture_id_reset - picks random picture id of
appropriate bitsize
gst_rtp_vp8_pay_picture_id_increment - increments picture id taking
care of wrapping

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/728>
gst/rtp/gstrtpvp8pay.c