summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorHe Junyan <junyan.he@intel.com>2021-06-30 15:23:15 +0800
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-07-02 08:44:15 +0000
commit17e8fea158b8bb38e5428aecc72a1d7ecff12df7 (patch)
tree4789ff3e80fa7d52f6b344d1c0541f08dadb32f1 /gst-libs
parentf38d944c0f4de5e7edfac6eaf3cd6ea790f3fabb (diff)
downloadgstreamer-plugins-bad-17e8fea158b8bb38e5428aecc72a1d7ecff12df7.tar.gz
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>
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/codecs/gstvp9statefulparser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/codecs/gstvp9statefulparser.c b/gst-libs/gst/codecs/gstvp9statefulparser.c
index 2c25419b5..134e1045a 100644
--- a/gst-libs/gst/codecs/gstvp9statefulparser.c
+++ b/gst-libs/gst/codecs/gstvp9statefulparser.c
@@ -1137,7 +1137,7 @@ gst_vp9_get_qindex (const GstVp9SegmentationParams * segmentation_params,
if (gst_vp9_seg_feature_active (segmentation_params, segment_id,
GST_VP9_SEG_LVL_ALT_Q)) {
- guint data =
+ gint data =
segmentation_params->feature_data[segment_id][GST_VP9_SEG_LVL_ALT_Q];
if (!segmentation_params->segmentation_abs_or_delta_update)