aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-07-26 00:03:50 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-07-28 10:27:51 +0200
commit25a53c54d146edd3cf21358505d3cd5d5b55bc3b (patch)
tree2e58c6f0997a930ad8341b233f319312ea3d7148
parent539940d42fd1df29db2e9393e868816824c821cf (diff)
downloadffmpeg-25a53c54d146edd3cf21358505d3cd5d5b55bc3b.tar.gz
lsws: apply logging factorization in sws_scale_init()
-rw-r--r--libswscale/utils.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c
index 7e8d9719fd..afae13388c 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -1078,12 +1078,9 @@ int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter)
flags & SWS_FAST_BILINEAR ? "FAST_BILINEAR C" : "C");
}
if (isPlanarYUV(dstFormat)) {
- if (c->vLumFilterSize==1)
- av_log(c, AV_LOG_VERBOSE, "using 1-tap %s \"scaler\" for vertical scaling (YV12 like)\n",
- (HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) ? "MMX" : "C");
- else
- av_log(c, AV_LOG_VERBOSE, "using n-tap %s scaler for vertical scaling (YV12 like)\n",
- (HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) ? "MMX" : "C");
+ av_log(c, AV_LOG_VERBOSE, "using %s-tap %s \"scaler\" for vertical scaling (YV12 like)\n",
+ c->vLumFilterSize == 1 ? "1" : "n",
+ HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX ? "MMX" : "C");
} else {
if (c->vLumFilterSize==1 && c->vChrFilterSize==2)
av_log(c, AV_LOG_VERBOSE, "using 1-tap %s \"scaler\" for vertical luminance scaling (BGR)\n"