[SCM] libav/experimental: Use a simpler and more general check for the gray case in the planarCopy function
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:41:53 UTC 2013
The following commit has been merged in the experimental branch:
commit f6cf4ed08a6717504ab172f940068a4ba64f2f0f
Author: Cédric Schieli <cschieli at gmail.com>
Date: Fri Mar 20 14:01:51 2009 +0000
Use a simpler and more general check for the gray case in the planarCopy function
Originally committed as revision 29009 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 9a74f95..17fe3c6 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -1989,11 +1989,8 @@ static int planarCopy(SwsContext *c, uint8_t* src[], int srcStride[], int srcSli
int y= plane==0 ? srcSliceY: -((-srcSliceY)>>c->chrDstVSubSample);
int height= plane==0 ? srcSliceH: -((-srcSliceH)>>c->chrDstVSubSample);
- if ((isGray(c->srcFormat) || isGray(c->dstFormat)) && plane>0)
- {
- if (!isGray(c->dstFormat))
+ if (dst[plane] && !src[plane])
fillPlane(dst[plane], dstStride[plane], length, height, y, 128);
- }
else
{
if (dstStride[plane]==srcStride[plane] && srcStride[plane] > 0)
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list