changeset 29012:8273eda1388c

Fix some places where "non-alpha to YUVA420P" do not fill the alpha plane
author sdrik
date Tue, 24 Mar 2009 07:10:19 +0000
parents cb5e58bff64b
children fa95462d62ca
files libswscale/swscale.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Tue Mar 24 07:09:19 2009 +0000
+++ b/libswscale/swscale.c	Tue Mar 24 07:10:19 2009 +0000
@@ -2047,6 +2047,8 @@
         dst[2]+(srcSliceY>>1)*dstStride[2],
         c->srcW, srcSliceH,
         dstStride[0], dstStride[1], srcStride[0]);
+    if (dst[3])
+        fillPlane(dst[3], dstStride[3], c->srcW, srcSliceH, srcSliceY, 255);
     return srcSliceH;
 }
 
@@ -2076,6 +2078,8 @@
         planar2x(src[1], dst[2], c->chrSrcW, c->chrSrcH, srcStride[1], dstStride[2]);
         planar2x(src[2], dst[1], c->chrSrcW, c->chrSrcH, srcStride[2], dstStride[1]);
     }
+    if (dst[3])
+        fillPlane(dst[3], dstStride[3], c->srcW, srcSliceH, srcSliceY, 255);
     return srcSliceH;
 }
 
@@ -2165,6 +2169,8 @@
         srcPtr+= srcStride[0];
         dstPtr+= dstStride[0];
     }
+    if (dst[3])
+        fillPlane(dst[3], dstStride[3], length, height, y, 255);
     return srcSliceH;
 }