Fix a bug of vp8 quant index calculation error
authorZhong Li <zhong.li@intel.com>
Mon, 23 Dec 2013 08:30:25 +0000 (16:30 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 27 Feb 2014 02:26:25 +0000 (10:26 +0800)
Signed-off-by: Zhong Li <zhong.li@intel.com>
src/gen8_mfd.c

index 3429693..3ce8ebe 100644 (file)
@@ -2745,12 +2745,14 @@ static const int vp8_ac_qlookup[128] =
     213, 217, 221, 225, 229, 234, 239, 245, 249, 254, 259, 264, 269, 274, 279, 284,
 };
 
-static inline unsigned int vp8_clip_quantization_index(unsigned int index)
+static inline unsigned int vp8_clip_quantization_index(int index)
 {
     if(index > 127)
         return 127;
     else if(index <0)
         return 0;
+
+    return index;
 }
 
 static void