summaryrefslogtreecommitdiff
path: root/vp9/encoder
diff options
context:
space:
mode:
authorYaowu Xu <Yaowu Xu>2016-02-08 20:13:19 -0800
committerYaowu Xu <yaowu@google.com>2016-02-08 20:30:50 -0800
commit5c327cb4506233c422c719f5a5e8c03d1f064b79 (patch)
tree6c0c5f2942311d34db345488d84646c37c454017 /vp9/encoder
parentf28ea3e830a2447bc9a3813c302f36594d1376d3 (diff)
downloadlibvpx-5c327cb4506233c422c719f5a5e8c03d1f064b79.tar
libvpx-5c327cb4506233c422c719f5a5e8c03d1f064b79.tar.gz
libvpx-5c327cb4506233c422c719f5a5e8c03d1f064b79.tar.bz2
libvpx-5c327cb4506233c422c719f5a5e8c03d1f064b79.zip
Set use_highbitdepth flag to either 1 or 0
This reduces the buffer allocation size for high bit depth buffers by more than 70%. Change-Id: Iab9007d9684e8ac30ce7fa94e61f038f01792fc5
Diffstat (limited to 'vp9/encoder')
-rw-r--r--vp9/encoder/vp9_encoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c
index 8a46738cd..6ea8dbf1b 100644
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -4141,7 +4141,7 @@ int vp9_receive_raw_frame(VP9_COMP *cpi, unsigned int frame_flags,
const int subsampling_x = sd->subsampling_x;
const int subsampling_y = sd->subsampling_y;
#if CONFIG_VP9_HIGHBITDEPTH
- 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);
#else
check_initial_width(cpi, subsampling_x, subsampling_y);