Merge "small optimization in segment-smoothing loop"

This commit is contained in:
Pascal Massimino 2013-10-08 04:13:37 -07:00 committed by Gerrit Code Review
commit 6a8c0eb718

View File

@ -55,6 +55,7 @@ static void SmoothSegmentMap(VP8Encoder* const enc) {
for (n = 0; n < NUM_MB_SEGMENTS; ++n) { for (n = 0; n < NUM_MB_SEGMENTS; ++n) {
if (cnt[n] >= majority_cnt_3_x_3_grid) { if (cnt[n] >= majority_cnt_3_x_3_grid) {
majority_seg = n; majority_seg = n;
break;
} }
} }
tmp[x + y * w] = majority_seg; tmp[x + y * w] = majority_seg;