diff options
author | Yaowu Xu <yaowu@google.com> | 2016-05-04 12:12:02 -0700 |
---|---|---|
committer | Yaowu Xu <yaowu@google.com> | 2016-05-04 12:14:11 -0700 |
commit | 81eb71f00ce7c08375ec9acc14f0f4c58767b8aa (patch) | |
tree | f4bcb7286e28c826a14e0fccf9c328f3937bc23b /vp9/encoder/vp9_encodemb.c | |
parent | 3c2231807ff1c540d1c0ce5ea13642bc57422055 (diff) | |
download | libvpx-81eb71f00ce7c08375ec9acc14f0f4c58767b8aa.tar libvpx-81eb71f00ce7c08375ec9acc14f0f4c58767b8aa.tar.gz libvpx-81eb71f00ce7c08375ec9acc14f0f4c58767b8aa.tar.bz2 libvpx-81eb71f00ce7c08375ec9acc14f0f4c58767b8aa.zip |
Change to use proper type in vp{9,10}_token_state
"qc" in vp{9,10}_token_state is used to save quantized coefficients, this
commit changes the type from short to tran_low_t to properly reflect
the value range for highbitdepth build.
This fixes an out-of-range bug when optimize_b is used in highbitdepth
build.
Change-Id: Ibf330879e6ac6ae8f099e085caa9d3d9a889fde8
Diffstat (limited to 'vp9/encoder/vp9_encodemb.c')
-rw-r--r-- | vp9/encoder/vp9_encodemb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_encodemb.c b/vp9/encoder/vp9_encodemb.c index b6d66db72..d53bddb1c 100644 --- a/vp9/encoder/vp9_encodemb.c +++ b/vp9/encoder/vp9_encodemb.c @@ -59,7 +59,7 @@ typedef struct vp9_token_state { int error; int next; int16_t token; - int16_t qc; + tran_low_t qc; } vp9_token_state; static const int plane_rd_mult[REF_TYPES][PLANE_TYPES] ={ {10, 6}, {8, 7}, }; |