From f7146bc1e69a316893e8abefc100d08513e6a872 Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Mon, 7 Oct 2013 00:32:27 -0700 Subject: [PATCH] small optimization in segment-smoothing loop probably not much of a speed difference Change-Id: I08c41d82c3c2eb5ff9ec9ca9d81af2bb09b362de --- src/enc/analysis.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/enc/analysis.c b/src/enc/analysis.c index 0ac42f1a..01d619f2 100644 --- a/src/enc/analysis.c +++ b/src/enc/analysis.c @@ -55,6 +55,7 @@ static void SmoothSegmentMap(VP8Encoder* const enc) { for (n = 0; n < NUM_MB_SEGMENTS; ++n) { if (cnt[n] >= majority_cnt_3_x_3_grid) { majority_seg = n; + break; } } tmp[x + y * w] = majority_seg;