mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Fix coding of sao chroma type idx.
This commit is contained in:
parent
0fd9105f0a
commit
e9819cbb5e
|
@ -828,7 +828,8 @@ void encode_sao_color(encoder_control *encoder, sao_info *sao, color_index color
|
||||||
cabac.ctx = &g_sao_type_idx_model;
|
cabac.ctx = &g_sao_type_idx_model;
|
||||||
if (color_i == COLOR_Y) {
|
if (color_i == COLOR_Y) {
|
||||||
CABAC_BIN(&cabac, sao->type, "sao_type_idx_luma");
|
CABAC_BIN(&cabac, sao->type, "sao_type_idx_luma");
|
||||||
} else {
|
} else if (color_i == COLOR_U) {
|
||||||
|
// SAO type is only coded for the first chroma.
|
||||||
CABAC_BIN(&cabac, sao->type, "sao_type_idx_chroma");
|
CABAC_BIN(&cabac, sao->type, "sao_type_idx_chroma");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue