projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe47ea8
)
swscale: more generic check for planar destination formats with alpha
author
Paul B Mahol
<onemda@gmail.com>
Mon, 30 Jan 2012 13:58:50 +0000
(13:58 +0000)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Mon, 30 Jan 2012 15:37:13 +0000
(07:37 -0800)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libswscale/swscale.c
patch
|
blob
|
history
diff --git
a/libswscale/swscale.c
b/libswscale/swscale.c
index
05ee8a4
..
eaec1dd
100644
(file)
--- a/
libswscale/swscale.c
+++ b/
libswscale/swscale.c
@@
-2672,7
+2672,7
@@
static int swScale(SwsContext *c, const uint8_t* src[],
}
}
- if (
(dstFormat == PIX_FMT_YUVA420P
) && !alpPixBuf)
+ if (
isPlanar(dstFormat) && isALPHA(dstFormat
) && !alpPixBuf)
fillPlane(dst[3], dstStride[3], dstW, dstY-lastDstY, lastDstY, 255);
#if HAVE_MMX2