diff options
author | Cédric Schieli <cschieli@gmail.com> | 2009-03-24 07:10:19 +0000 |
---|---|---|
committer | Cédric Schieli <cschieli@gmail.com> | 2009-03-24 07:10:19 +0000 |
commit | 08218e6d8304f7fa5616ab71b9b348bcb9f6587b (patch) | |
tree | 863f3e78d4edf571863ab2c87933ca52aaf8aa2f | |
parent | 0928f1eb53c8d60c6904b00b76d8d79f9f6d7634 (diff) | |
download | ffmpeg-streaming-08218e6d8304f7fa5616ab71b9b348bcb9f6587b.zip ffmpeg-streaming-08218e6d8304f7fa5616ab71b9b348bcb9f6587b.tar.gz |
Fix some places where "non-alpha to YUVA420P" do not fill the alpha plane
Originally committed as revision 29047 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
-rw-r--r-- | libswscale/swscale.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index d9c1c59..c9e56cc 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -2047,6 +2047,8 @@ static int bgr24toyv12Wrapper(SwsContext *c, uint8_t* src[], int srcStride[], in 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 @@ static int yvu9toyv12Wrapper(SwsContext *c, uint8_t* src[], int srcStride[], int 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 @@ static int gray16togray(SwsContext *c, uint8_t* src[], int srcStride[], int srcS srcPtr+= srcStride[0]; dstPtr+= dstStride[0]; } + if (dst[3]) + fillPlane(dst[3], dstStride[3], length, height, y, 255); return srcSliceH; } |