summaryrefslogtreecommitdiff
path: root/vp9/decoder/vp9_decodeframe.c
diff options
context:
space:
mode:
authorDeb Mukherjee <debargha@google.com>2014-09-25 15:46:50 -0700
committerDeb Mukherjee <debargha@google.com>2014-09-29 11:27:45 -0700
commit9ed23de13f0ddfebea2a7ff6caa370126dd84979 (patch)
tree2ac02213e8561d9ca919f3cb715e220ca4d3bf57 /vp9/decoder/vp9_decodeframe.c
parent8b4dd536a53623f27a5dde7a4e4bd4cae485ba1c (diff)
downloadlibvpx-9ed23de13f0ddfebea2a7ff6caa370126dd84979.tar
libvpx-9ed23de13f0ddfebea2a7ff6caa370126dd84979.tar.gz
libvpx-9ed23de13f0ddfebea2a7ff6caa370126dd84979.tar.bz2
libvpx-9ed23de13f0ddfebea2a7ff6caa370126dd84979.zip
Miscellaneous decoder changes for high bitdepth
Also includes yv12 config changes. Change-Id: Iacf40d8bf486815b54c32a127ce3cd4516b7e44f
Diffstat (limited to 'vp9/decoder/vp9_decodeframe.c')
-rw-r--r--vp9/decoder/vp9_decodeframe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/vp9/decoder/vp9_decodeframe.c b/vp9/decoder/vp9_decodeframe.c
index 0ec271082..db55de16d 100644
--- a/vp9/decoder/vp9_decodeframe.c
+++ b/vp9/decoder/vp9_decodeframe.c
@@ -652,8 +652,10 @@ static void setup_quantization(VP9_COMMON *const cm, MACROBLOCKD *const xd,
update |= read_delta_q(rb, &cm->y_dc_delta_q);
update |= read_delta_q(rb, &cm->uv_dc_delta_q);
update |= read_delta_q(rb, &cm->uv_ac_delta_q);
- if (update)
+ if (update || cm->bit_depth != cm->dequant_bit_depth) {
vp9_init_dequantizer(cm);
+ cm->dequant_bit_depth = cm->bit_depth;
+ }
xd->lossless = cm->base_qindex == 0 &&
cm->y_dc_delta_q == 0 &&