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
This commit is contained in:
parent
3c2231807f
commit
81eb71f00c
@ -57,7 +57,7 @@ typedef struct vp10_token_state {
|
|||||||
int error;
|
int error;
|
||||||
int next;
|
int next;
|
||||||
int16_t token;
|
int16_t token;
|
||||||
short qc;
|
tran_low_t qc;
|
||||||
} vp10_token_state;
|
} vp10_token_state;
|
||||||
|
|
||||||
// TODO(jimbankoski): experiment to find optimal RD numbers.
|
// TODO(jimbankoski): experiment to find optimal RD numbers.
|
||||||
|
@ -59,7 +59,7 @@ typedef struct vp9_token_state {
|
|||||||
int error;
|
int error;
|
||||||
int next;
|
int next;
|
||||||
int16_t token;
|
int16_t token;
|
||||||
int16_t qc;
|
tran_low_t qc;
|
||||||
} vp9_token_state;
|
} vp9_token_state;
|
||||||
|
|
||||||
static const int plane_rd_mult[REF_TYPES][PLANE_TYPES] ={ {10, 6}, {8, 7}, };
|
static const int plane_rd_mult[REF_TYPES][PLANE_TYPES] ={ {10, 6}, {8, 7}, };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user