v4l2slvp8dec: Flip the meaning of segment_feature_mode
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 5 May 2020 16:01:21 +0000 (12:01 -0400)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 5 May 2020 17:57:08 +0000 (17:57 +0000)
commit5ece17ecbd06b244f8c1c6805e5c46c59484b8c6
tree6b82cdbbc4bf43c56d03a62cb98214332f27824c
parent11c62eb015f89fb57622deaffaf4cfc1d1d1f5fb
v4l2slvp8dec: Flip the meaning of segment_feature_mode

In section 9.3.4 a), segment_feature_mode have 0 for absolute and 1 for delta,
while in 19.2, it says the opposite. But the reference code, which usually
rules over the text state that 1 means absolute:

 if (hdr->update_data)
 {
     hdr->abs = bool_get_bit(bool);

And uses it with that meaning to decide weither to override the existing value
or just add the detla. This fixes multiple decoding issues.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1245>
sys/v4l2codecs/gstv4l2codecvp8dec.c