| Index: source/libvpx/vp9/common/vp9_quant_common.c
|
| ===================================================================
|
| --- source/libvpx/vp9/common/vp9_quant_common.c (revision 254565)
|
| +++ source/libvpx/vp9/common/vp9_quant_common.c (working copy)
|
| @@ -134,9 +134,9 @@
|
| int base_qindex) {
|
| if (vp9_segfeature_active(seg, segment_id, SEG_LVL_ALT_Q)) {
|
| const int data = vp9_get_segdata(seg, segment_id, SEG_LVL_ALT_Q);
|
| - return seg->abs_delta == SEGMENT_ABSDATA ?
|
| - data : // Abs value
|
| - clamp(base_qindex + data, 0, MAXQ); // Delta value
|
| + const int seg_qindex = seg->abs_delta == SEGMENT_ABSDATA ?
|
| + data : base_qindex + data;
|
| + return clamp(seg_qindex, 0, MAXQ);
|
| } else {
|
| return base_qindex;
|
| }
|
|
|