summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_bitstream.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2015-09-16 20:26:10 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-09-16 20:26:10 +0000
commit623279169a5bd9b9dbc4467c8636bf5923c52fc2 (patch)
tree207a4774d26f416fb668ac782bcf85c74dbb0520 /vp9/encoder/vp9_bitstream.c
parentc21ce82832b8f9ba754a86f37a565c6206c47543 (diff)
parenteeb5ef0a240cb7c69d5e92cdd9879032fb4bc5a7 (diff)
downloadlibvpx-623279169a5bd9b9dbc4467c8636bf5923c52fc2.tar
libvpx-623279169a5bd9b9dbc4467c8636bf5923c52fc2.tar.gz
libvpx-623279169a5bd9b9dbc4467c8636bf5923c52fc2.tar.bz2
libvpx-623279169a5bd9b9dbc4467c8636bf5923c52fc2.zip
Merge "Add support for color-range."
Diffstat (limited to 'vp9/encoder/vp9_bitstream.c')
-rw-r--r--vp9/encoder/vp9_bitstream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_bitstream.c b/vp9/encoder/vp9_bitstream.c
index 71715f0a0..01cced001 100644
--- a/vp9/encoder/vp9_bitstream.c
+++ b/vp9/encoder/vp9_bitstream.c
@@ -1060,7 +1060,8 @@ static void write_bitdepth_colorspace_sampling(
}
vpx_wb_write_literal(wb, cm->color_space, 3);
if (cm->color_space != VPX_CS_SRGB) {
- vpx_wb_write_bit(wb, 0); // 0: [16, 235] (i.e. xvYCC), 1: [0, 255]
+ // 0: [16, 235] (i.e. xvYCC), 1: [0, 255]
+ vpx_wb_write_bit(wb, cm->color_range);
if (cm->profile == PROFILE_1 || cm->profile == PROFILE_3) {
assert(cm->subsampling_x != 1 || cm->subsampling_y != 1);
vpx_wb_write_bit(wb, cm->subsampling_x);