Commit 30556193 authored by Rostislav Pehlivanov's avatar Rostislav Pehlivanov

q_segmentation: set seg->q_lvls to 0 when disabled

Otherwise the previous value ended up being used, creating a desync.

Change-Id: I42d466474ce1a2567045720b8dfd413625f21cfa
parent 359854fe
......@@ -1110,7 +1110,10 @@ static void setup_q_segmentation(AV1_COMMON *const cm,
if (!aom_rb_read_bit(rb)) return;
if (!aom_rb_read_bit(rb)) {
seg->q_lvls = 0;
seg->q_lvls = decode_unsigned_max(rb, MAX_SEGMENTS);
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