diff --git a/vp9/decoder/vp9_decodframe.c b/vp9/decoder/vp9_decodframe.c index 2f713d3ad..2457f79e1 100644 --- a/vp9/decoder/vp9_decodframe.c +++ b/vp9/decoder/vp9_decodframe.c @@ -1246,8 +1246,6 @@ int vp9_decode_frame(VP9D_COMP *pbi, const uint8_t **p_data_end) { setup_loopfilter(pc, xd, &header_bc); - vp9_read_literal(&header_bc, 2); // unused - setup_quantization(pbi, &header_bc); // Determine if the golden frame or ARF buffer should be updated and how. @@ -1343,11 +1341,8 @@ int vp9_decode_frame(VP9D_COMP *pbi, const uint8_t **p_data_end) { vp9_setup_block_dptrs(xd); // clear out the coeff buffer - vpx_memset(xd->plane[0].qcoeff, 0, sizeof(xd->plane[0].qcoeff)); - vpx_memset(xd->plane[1].qcoeff, 0, sizeof(xd->plane[1].qcoeff)); - vpx_memset(xd->plane[2].qcoeff, 0, sizeof(xd->plane[2].qcoeff)); - - vp9_read_bit(&header_bc); // unused + for (i = 0; i < MAX_MB_PLANE; ++i) + vp9_zero(xd->plane[i].qcoeff); vp9_decode_mode_mvs_init(pbi, &header_bc); diff --git a/vp9/encoder/vp9_bitstream.c b/vp9/encoder/vp9_bitstream.c index 7152ac955..0d5de648e 100644 --- a/vp9/encoder/vp9_bitstream.c +++ b/vp9/encoder/vp9_bitstream.c @@ -1930,9 +1930,6 @@ void vp9_pack_bitstream(VP9_COMP *cpi, uint8_t *dest, unsigned long *size) { } } - // TODO(jkoleszar): remove these unused bits - vp9_write_literal(&header_bc, 0, 2); - // Frame Q baseline quantizer index vp9_write_literal(&header_bc, pc->base_qindex, QINDEX_BITS); @@ -2178,9 +2175,6 @@ void vp9_pack_bitstream(VP9_COMP *cpi, uint8_t *dest, unsigned long *size) { active_section = 2; #endif - // TODO(jkoleszar): remove this unused bit - vp9_write_bit(&header_bc, 1); - vp9_update_skip_probs(cpi); for (i = 0; i < MBSKIP_CONTEXTS; ++i) { vp9_write_prob(&header_bc, pc->mbskip_pred_probs[i]);