diff options
author | Tobias Bindhammer <tobias.bindhammer@uni-ulm.de> | 2010-10-05 12:14:27 +0000 |
---|---|---|
committer | Tobias Bindhammer <tobias.bindhammer@uni-ulm.de> | 2010-10-05 12:14:27 +0000 |
commit | bbc26bae117b9bfb85a129e5705715bd1df08380 (patch) | |
tree | dfefc2241a54002010c399f86a21d761c58f6e5e /libavcodec/a64multienc.c | |
parent | 90a3ffe27650ab75e00658fc1afa3d715eca2f9d (diff) | |
download | ffmpeg-bbc26bae117b9bfb85a129e5705715bd1df08380.tar.gz |
Skip unnecessary calculations in 4col-mode.
Originally committed as revision 25347 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/a64multienc.c')
-rw-r--r-- | libavcodec/a64multienc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]); |