summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-01-15 15:15:22 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-01-16 02:47:15 +0100
commit2df7277711cbe3ca5415ff8e31228dcffa309211 (patch)
treec8d9cba84e0116158c0a041c62386939c9d98764 /libswscale
parent89df3fd49e9992441f680326902b4912d79f514f (diff)
downloadffmpeg-streaming-2df7277711cbe3ca5415ff8e31228dcffa309211.zip
ffmpeg-streaming-2df7277711cbe3ca5415ff8e31228dcffa309211.tar.gz
swscale: fix gbrap to gbrap alpha scaling
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/input.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libswscale/input.c b/libswscale/input.c
index f575b7b..e806bce 100644
--- a/libswscale/input.c
+++ b/libswscale/input.c
@@ -596,12 +596,11 @@ static void planar_rgb_to_y(uint8_t *dst, const uint8_t *src[4], int width)
}
}
-static void planar_rgb_to_a(uint8_t *_dst, const uint8_t *src[4], int width)
+static void planar_rgb_to_a(uint8_t *dst, const uint8_t *src[4], int width)
{
- uint16_t *dst = (uint16_t *)_dst;
int i;
for (i = 0; i < width; i++)
- dst[i] = src[3][i] << 6;
+ dst[i] = src[3][i];
}
static void planar_rgb_to_uv(uint8_t *dstU, uint8_t *dstV, const uint8_t *src[4], int width)
OpenPOWER on IntegriCloud