Commit 857c99ba authored by Imdad Sardharwalla's avatar Imdad Sardharwalla Committed by Yaowu Xu
Browse files

Fix uninitialised bits after uncompressed header

A few bits of data were not zeroed because aom_wb_overwrite_literal
was being used instead of aom_wb_write_literal.


Change-Id: If9196551e99b6e5eeaefc3fe022088088f1dcd51
parent 5577bd18
......@@ -3128,8 +3128,8 @@ static uint32_t write_tiles(AV1_COMP *const cpi, uint8_t *const dst,
tg_params_wb = wb;
saved_offset = wb.bit_offset;
if (have_tiles) {
aom_wb_overwrite_literal(&wb, 3, n_log2_tiles);
aom_wb_overwrite_literal(&wb, (1 << n_log2_tiles) - 1, n_log2_tiles);
aom_wb_write_literal(&wb, 3, n_log2_tiles);
aom_wb_write_literal(&wb, (1 << n_log2_tiles) - 1, n_log2_tiles);
if (!use_compressed_header(cm)) {
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