From: Yaowu Xu Date: Wed, 4 May 2016 18:59:10 +0000 (-0700) Subject: Change to use proper type in vp10_token_state X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d7dc0cae1422bdacd044f475fc8db7fd0d80265;p=libvpx Change to use proper type in vp10_token_state "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 --- diff --git a/vp10/encoder/encodemb.c b/vp10/encoder/encodemb.c index 30e77b04d..966a13303 100644 --- a/vp10/encoder/encodemb.c +++ b/vp10/encoder/encodemb.c @@ -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.