changeset 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 d50adcfcf99c
children 2d5d4a57ea95
files libswscale/swscale.c
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
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)