projects
/
platform
/
upstream
/
libva-intel-driver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70c232a
)
Fix a bug of vp8 quant index calculation error
author
Zhong Li
<zhong.li@intel.com>
Mon, 23 Dec 2013 08:30:25 +0000
(16:30 +0800)
committer
Xiang, 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
patch
|
blob
|
history
diff --git
a/src/gen8_mfd.c
b/src/gen8_mfd.c
index
3429693
..
3ce8ebe
100644
(file)
--- a/
src/gen8_mfd.c
+++ b/
src/gen8_mfd.c
@@
-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