summaryrefslogtreecommitdiffstats
path: root/libswscale/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'libswscale/input.c')
-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