]> git.sesse.net Git - ffmpeg/commitdiff
Enable unscaled packed422 -> planar 420 converters by default as the
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 21 Mar 2009 23:59:02 +0000 (23:59 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 21 Mar 2009 23:59:02 +0000 (23:59 +0000)
imgconvert inherited quality issues should be fixed.

Originally committed as revision 29031 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/swscale.c

index bc35ad59ab18074102a526957e0ef53b95023c0b..d9c1c5936962ca420e14ac595000ad0cde802ebd 100644 (file)
@@ -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)