[FFmpeg-cvslog] r29031 - trunk/libswscale/swscale.c

michael subversion
Sun Mar 22 00:59:03 CET 2009


Author: michael
Date: Sun Mar 22 00:59:02 2009
New Revision: 29031

Log:
Enable unscaled packed422 -> planar 420 converters by default as the
imgconvert inherited quality issues should be fixed.

Modified:
   trunk/libswscale/swscale.c

Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c	Sun Mar 22 00:52:34 2009	(r29030)
+++ trunk/libswscale/swscale.c	Sun Mar 22 00:59:02 2009	(r29031)
@@ -2575,12 +2575,11 @@ SwsContext *sws_getContext(int srcW, int
                 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)



More information about the ffmpeg-cvslog mailing list