Commit 2d4322ba authored by Rostislav Pehlivanov's avatar Rostislav Pehlivanov Committed by Sebastien Alaiwan

Skip writing spatial seg ids on non-keyframes

Was forgotten when commited.
Happened only when temporal prediction was on.

Change-Id: I08c3f03f3442d0b0c6c9aa0bb2a3943dcdb303ab
parent 41cae6a6
......@@ -609,7 +609,7 @@ static int read_inter_segment_id(AV1_COMMON *const cm, MACROBLOCKD *const xd,
if (seg->temporal_update) {
mbmi->seg_id_predicted = 0;
}
segment_id = read_segment_id(cm, xd, mi_row, mi_col, r, 0);
segment_id = read_segment_id(cm, xd, mi_row, mi_col, r, 1);
set_segment_id(cm, mi_offset, x_mis, y_mis, segment_id);
return segment_id;
}
......
......@@ -1188,7 +1188,7 @@ static void write_inter_segment_id(AV1_COMP *cpi, aom_writer *w,
} else {
if (cm->preskip_segid) return;
if (skip) {
write_segment_id(cpi, mbmi, w, seg, segp, mi_row, mi_col, 0);
write_segment_id(cpi, mbmi, w, seg, segp, mi_row, mi_col, 1);
if (seg->temporal_update) ((MB_MODE_INFO *)mbmi)->seg_id_predicted = 0;
return;
}
......
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