diff libswscale/swscale.c @ 28996:52f5616d6abf

Enable unscaled packed422 -> planar 420 converters by default as the imgconvert inherited quality issues should be fixed.
author michael
date Sat, 21 Mar 2009 23:59:02 +0000
parents ced556e1595a
children 8273eda1388c
line wrap: on
line diff
--- a/libswscale/swscale.c	Sat Mar 21 23:52:34 2009 +0000
+++ b/libswscale/swscale.c	Sat Mar 21 23:59:02 2009 +0000
@@ -2575,12 +2575,11 @@
                 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)