rtpbasepayload: fix header extension length calculation
authorJakub Adam <jakub.adam@collabora.com>
Tue, 12 Jan 2021 21:08:14 +0000 (22:08 +0100)
committerJakub Adam <jakub.adam@collabora.com>
Tue, 12 Jan 2021 21:26:19 +0000 (22:26 +0100)
commitf5d971a19ea74f6dd624dcb66992bf955731e8c7
tree7893e827969b16ccc5e9ad5631ab8ff9d6b6f97a
parentdc969bf538ecc4ba7dcb7203286a10f0864ea794
rtpbasepayload: fix header extension length calculation

Since ternary operator has the lowest precedence in the expressions at
hand, wordlen would always incorrectly yield 0 or 1.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1009>
gst-libs/gst/rtp/gstrtpbasepayload.c