Fix coding of sao chroma type idx.

This commit is contained in:
Ari Koivula 2013-10-24 16:04:46 +03:00
parent 0fd9105f0a
commit e9819cbb5e

View file

@ -828,7 +828,8 @@ void encode_sao_color(encoder_control *encoder, sao_info *sao, color_index color
cabac.ctx = &g_sao_type_idx_model;
if (color_i == COLOR_Y) {
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");
}