[FFmpeg-cvslog] r30326 - trunk/libswscale/swscale.c
stefano
subversion
Sat Jan 16 19:36:21 CET 2010
Author: stefano
Date: Sat Jan 16 19:36:21 2010
New Revision: 30326
Log:
Factorize code which logs the source and destination formats in
sws_getContext().
Modified:
trunk/libswscale/swscale.c
Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c Sat Jan 16 17:39:46 2010 (r30325)
+++ trunk/libswscale/swscale.c Sat Jan 16 19:36:21 2010 (r30326)
@@ -2839,12 +2839,10 @@ SwsContext *sws_getContext(int srcW, int
else
av_log(c, AV_LOG_INFO, "ehh flags invalid?! ");
- if (dstFormat==PIX_FMT_BGR555 || dstFormat==PIX_FMT_BGR565)
- av_log(c, AV_LOG_INFO, "from %s to%s %s ",
- sws_format_name(srcFormat), dither, sws_format_name(dstFormat));
- else
- av_log(c, AV_LOG_INFO, "from %s to %s ",
- sws_format_name(srcFormat), sws_format_name(dstFormat));
+ av_log(c, AV_LOG_INFO, "from %s to%s %s ",
+ sws_format_name(srcFormat),
+ dstFormat == PIX_FMT_BGR555 || dstFormat == PIX_FMT_BGR565 ? dither : "",
+ sws_format_name(dstFormat));
if (flags & SWS_CPU_CAPS_MMX2)
av_log(c, AV_LOG_INFO, "using MMX2\n");
More information about the ffmpeg-cvslog
mailing list