Commit da06779c authored by Rostislav Pehlivanov's avatar Rostislav Pehlivanov

q_segmentation: disable delta_q encoding when enabled

The decoder side correctly disabled delta_q but the encoder didn't.

Change-Id: I9f720c678d9e99d723c632095c058eaecd1a639d
parent 30556193
......@@ -4057,6 +4057,9 @@ static void write_uncompressed_header_frame(AV1_COMP *cpi,
segment_quantizer_active = 1;
}
}
#if CONFIG_Q_SEGMENTATION
segment_quantizer_active |= !!seg->q_lvls;
#endif
delta_q_allowed = !segment_quantizer_active;
#endif
......@@ -4417,6 +4420,9 @@ static void write_uncompressed_header_obu(AV1_COMP *cpi,
segment_quantizer_active = 1;
}
}
#if CONFIG_Q_SEGMENTATION
segment_quantizer_active |= !!seg->q_lvls;
#endif
delta_q_allowed = !segment_quantizer_active;
#endif
......
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