diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-08-09 16:59:12 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-08-09 16:59:12 +0300 |
commit | f28ba31b1b181d5db1aec1e5b9e23ddbadb365d3 (patch) | |
tree | 61357e6ddd72334a69db0c70f12c4c7777343841 /libswscale/alphablend.c | |
parent | b7faa9d314f26855f8555a265a6231b291773482 (diff) |
swscale/alphablend: Fix big endian formats on LE
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libswscale/alphablend.c')
-rw-r--r-- | libswscale/alphablend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/alphablend.c b/libswscale/alphablend.c index 8e04d6c4e1..7127d6c18b 100644 --- a/libswscale/alphablend.c +++ b/libswscale/alphablend.c @@ -44,7 +44,7 @@ int ff_sws_alphablendaway(SwsContext *c, const uint8_t *src[], const uint16_t *a = src[plane_count] + srcStride[plane_count] * y; uint16_t *d = dst[plane ] + dstStride[plane] * y; unsigned target = plane && !(desc->flags & AV_PIX_FMT_FLAG_RGB) ? 1<<desc->comp[0].depth_minus1 : 0; - if ((!isBE(c->dstFormat)) == !HAVE_BIGENDIAN) { + if ((!isBE(c->srcFormat)) == !HAVE_BIGENDIAN) { for (x = 0; x < w; x++) { unsigned u = s[x]*a[x] + target*(max-a[x]) + off; d[x] = av_clip((u + (u >> shift)) >> shift, 0, max); |