shithub: libvpx

Download patch

ref: e040c6c404923ee6da8b5ff0950f02c993747d7c
parent: 835f16ea362c61d660986bde58dd40d80ee62cf5
parent: ff3674a15e5b1a006546e1edc64c3e778eb34ab1
author: James Zern <jzern@google.com>
date: Tue Dec 8 20:37:58 EST 2015

Merge "vp8: fix quantizer clamping"

--- a/vp8/decoder/decodeframe.c
+++ b/vp8/decoder/decodeframe.c
@@ -73,10 +73,9 @@
 
         /* Delta Value */
         else
-        {
             QIndex = pc->base_qindex + xd->segment_feature_data[MB_LVL_ALT_Q][mbmi->segment_id];
-            QIndex = (QIndex >= 0) ? ((QIndex <= MAXQ) ? QIndex : MAXQ) : 0;    /* Clamp to valid range */
-        }
+
+        QIndex = (QIndex >= 0) ? ((QIndex <= MAXQ) ? QIndex : MAXQ) : 0;    /* Clamp to valid range */
     }
     else
         QIndex = pc->base_qindex;