]> granicus.if.org Git - libvpx/commitdiff
Change to use proper type in vp10_token_state
authorYaowu Xu <yaowu@google.com>
Wed, 4 May 2016 18:59:10 +0000 (11:59 -0700)
committerYaowu Xu <yaowu@google.com>
Wed, 4 May 2016 18:59:10 +0000 (11:59 -0700)
"qc" in vp10_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: I914c6fd3d3f4b9d061f9ed7cc5f08a883ab59dcd

vp10/encoder/encodemb.c

index 30e77b04d6e8787a08983bb03350e7d0d15739bb..966a13303ec02220207bc7e83a6d3d042d315456 100644 (file)
@@ -61,7 +61,7 @@ typedef struct vp10_token_state {
   int           error;
   int           next;
   int16_t       token;
-  short         qc;
+  tran_low_t    qc;
 } vp10_token_state;
 
 // TODO(jimbankoski): experiment to find optimal RD numbers.