diff options
author | Michael Niedermayer | 2011-07-11 01:44:23 +0200 |
---|---|---|
committer | Michael Niedermayer | 2011-07-11 03:51:46 +0200 |
commit | e1d9cee13dda335dcb8e46115512cca7d1f2b5a1 (patch) | |
tree | ad3905c26173fb715934535c47b27594e833d7a5 /libswscale | |
parent | 29fb1b5a06752d2baf10dd363ece1f1b3c964833 (diff) |
sws: dont mess with XInc when the code needing it isnt used
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index 9d373cc038..62839ee8e5 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -916,7 +916,7 @@ int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter) c->chrXInc+= 20; } //we don't use the x86 asm scaler if MMX is available - else if (HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) { + else if (HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX && c->scalingBpp == 8) { c->lumXInc = ((srcW-2)<<16)/(dstW-2) - 20; c->chrXInc = ((c->chrSrcW-2)<<16)/(c->chrDstW-2) - 20; } |