From bbc26bae117b9bfb85a129e5705715bd1df08380 Mon Sep 17 00:00:00 2001 From: Tobias Bindhammer Date: Tue, 5 Oct 2010 12:14:27 +0000 Subject: [PATCH] Skip unnecessary calculations in 4col-mode. Originally committed as revision 25347 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/a64multienc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/a64multienc.c b/libavcodec/a64multienc.c index 1cbd06492f..e184ca9d29 100644 --- a/libavcodec/a64multienc.c +++ b/libavcodec/a64multienc.c @@ -138,7 +138,7 @@ static void render_charset(AVCodecContext *avctx, uint8_t *charset, if(INTERLACED) charset[y+0x800] = row2; } /* do we need to adjust pixels? */ - if (highdiff > 0 && lowdiff > 0) { + if (highdiff > 0 && lowdiff > 0 && c->mc_use_5col) { if (lowdiff > highdiff) { for (x = 0; x < 32; x++) best_cb[x] = FFMIN(c->mc_luma_vals[3], best_cb[x]);