mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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>
This commit is contained in:
parent
f38d944c0f
commit
17e8fea158
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue