codecparsers: vp9statefulparser: Fix the gst_vp9_get_qindex clamp issue.
authorHe Junyan <junyan.he@intel.com>
Wed, 30 Jun 2021 07:23:15 +0000 (15:23 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 2 Jul 2021 08:44:15 +0000 (08:44 +0000)
commit17e8fea158b8bb38e5428aecc72a1d7ecff12df7
tree4789ff3e80fa7d52f6b344d1c0541f08dadb32f1
parentf38d944c0f4de5e7edfac6eaf3cd6ea790f3fabb
codecparsers: vp9statefulparser: Fix the gst_vp9_get_qindex clamp issue.

The alternate quantizer is a delta value and should be int type.
We mark it wrongly as uint, that will make CLAMP (data, 0, 255)
always choose 255 rather than 0 if the data < 0.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2369>
gst-libs/gst/codecs/gstvp9statefulparser.c