Commit 27bd9939 authored by Yaowu Xu's avatar Yaowu Xu Committed by Gerrit Code Review
Browse files

Merge "Fix a bug in HBD buffer size computation" into nextgenv2

parents d46c1f23 bb5f9e43
......@@ -146,7 +146,8 @@ typedef struct VP10Common {
int subsampling_y;
int use_highbitdepth; // Marks if we need to use 16bit frame buffers.
// Marks if we need to use 16bit frame buffers (1: yes, 0: no).
int use_highbitdepth;
YV12_BUFFER_CONFIG *frame_to_show;
......@@ -4010,7 +4010,7 @@ int vp10_receive_raw_frame(VP10_COMP *cpi, unsigned int frame_flags,
const int subsampling_x = sd->subsampling_x;
const int subsampling_y = sd->subsampling_y;
const int use_highbitdepth = sd->flags & YV12_FLAG_HIGHBITDEPTH;
const int use_highbitdepth = (sd->flags & YV12_FLAG_HIGHBITDEPTH) != 0;
check_initial_width(cpi, use_highbitdepth, subsampling_x, subsampling_y);
check_initial_width(cpi, subsampling_x, subsampling_y);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment