diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-21 23:59:02 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-21 23:59:02 +0000 |
commit | f5dbce7baabb2390ec5cafb7d6886220285b53e7 (patch) | |
tree | f2c9f5eaaf731804eb07bef888c3cab0c00aea22 /libswscale | |
parent | 5c31b702639ad160336f748f269b3440911df2be (diff) | |
download | mpv-f5dbce7baabb2390ec5cafb7d6886220285b53e7.tar.bz2 mpv-f5dbce7baabb2390ec5cafb7d6886220285b53e7.tar.xz |
Enable unscaled packed422 -> planar 420 converters by default as the
imgconvert inherited quality issues should be fixed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29031 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/swscale.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index bc35ad59ab..d9c1c59369 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -2575,12 +2575,11 @@ SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat, int d else if (dstFormat == PIX_FMT_UYVY422) c->swScale= PlanarToUyvyWrapper; } - - if(srcFormat == PIX_FMT_YUYV422 && dstFormat == PIX_FMT_YUV420P) - c->swScale= YUYV2YUV420Wrapper; - if(srcFormat == PIX_FMT_UYVY422 && dstFormat == PIX_FMT_YUV420P) - c->swScale= UYVY2YUV420Wrapper; } + if(srcFormat == PIX_FMT_YUYV422 && dstFormat == PIX_FMT_YUV420P) + c->swScale= YUYV2YUV420Wrapper; + if(srcFormat == PIX_FMT_UYVY422 && dstFormat == PIX_FMT_YUV420P) + c->swScale= UYVY2YUV420Wrapper; if(srcFormat == PIX_FMT_YUYV422 && dstFormat == PIX_FMT_YUV422P) c->swScale= YUYV2YUV422Wrapper; if(srcFormat == PIX_FMT_UYVY422 && dstFormat == PIX_FMT_YUV422P) |