rtpbuffer: add_extension_onebyte_header: fix the proper wordlen
authorMiguel Paris <mparisdiaz@gmail.com>
Thu, 20 Feb 2020 16:25:19 +0000 (17:25 +0100)
committerMiguel Paris <mparisdiaz@gmail.com>
Thu, 19 Mar 2020 13:18:20 +0000 (14:18 +0100)
commitf265e5cbd5c0d1a0b611feb0bd50d52cac2436a9
treeb6369edf4634421de749464da9906101ef2124fb
parent2d4d28d662bae884a8e7b8ec5b2570546bf28caa
rtpbuffer: add_extension_onebyte_header: fix the proper wordlen

The wordlen ("length") MUST represent the total "number of 32-bit words
in the extension, excluding the four-octet extension header" (rfc3550).
There are cases where already existent padding is reused for adding
the new extension. So the new wordlen should be updated if the new
added extension makes it to increase.
gst-libs/gst/rtp/gstrtpbuffer.c
tests/check/libs/rtp.c