diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-16 18:36:21 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-16 18:36:21 +0000 |
commit | d95c863850d4660575bdc26c7a57bf43312da763 (patch) | |
tree | f28b72b5540b4e72418037564850babbe3d8e3d4 /libswscale | |
parent | 15ccfff12cc5a834ba13a0b45cc44163734b5cb4 (diff) | |
download | ffmpeg-streaming-d95c863850d4660575bdc26c7a57bf43312da763.zip ffmpeg-streaming-d95c863850d4660575bdc26c7a57bf43312da763.tar.gz |
Factorize code which logs the source and destination formats in
sws_getContext().
Originally committed as revision 30326 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/swscale.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 71786b8..9f1b9fd 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -2839,12 +2839,10 @@ SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat, int d 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"); |