Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-01-30 17:58:50 +0400
committerRonald S. Bultje <rsbultje@gmail.com>2012-01-30 19:37:13 +0400
commit08d8029ea89a3a4ae3e1fa509a35d4b7a8a406a2 (patch)
tree675e78aae46462837cb85f72bd2ae074619ce55e /libswscale
parentfe47ea8f7a5575ce9bb63907c1f0a996de4a7b0d (diff)
swscale: more generic check for planar destination formats with alpha
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 05ee8a4d91..eaec1dd82c 100644
--- 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