aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/output.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-10-15 14:23:14 -0300
committerJames Almer <jamrial@gmail.com>2024-10-17 11:57:36 -0300
commit2137346324437cab8f40b1134e0e17361e307546 (patch)
tree7b710495ac87a78734204c39bb5745fda1ee53c5 /libswscale/output.c
parente1d1ba4cbc67ba9a227a1457904f50a305cf1158 (diff)
downloadffmpeg-2137346324437cab8f40b1134e0e17361e307546.tar.gz
swscale/output: fill all the xv36le alpha bits
The format is 10 bit per component, not 8. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libswscale/output.c')
-rw-r--r--libswscale/output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/output.c b/libswscale/output.c
index 314dc8333f..3b954e28a2 100644
--- a/libswscale/output.c
+++ b/libswscale/output.c
@@ -2670,7 +2670,7 @@ yuv2xv36le_X_c(SwsContext *c, const int16_t *lumFilter,
{
int i;
for (i = 0; i < dstW; i++) {
- int Y = 1 << 14, U = 1 << 14, V = 1 << 14, A = 255;
+ int Y = 1 << 14, U = 1 << 14, V = 1 << 14, A = 65535;
int j;
for (j = 0; j < lumFilterSize; j++)
@@ -2684,7 +2684,7 @@ yuv2xv36le_X_c(SwsContext *c, const int16_t *lumFilter,
AV_WL16(dest + 8 * i + 2, av_clip_uintp2(Y >> 15, 12) << 4);
AV_WL16(dest + 8 * i + 0, av_clip_uintp2(U >> 15, 12) << 4);
AV_WL16(dest + 8 * i + 4, av_clip_uintp2(V >> 15, 12) << 4);
- AV_WL16(dest + 8 * i + 6, A);
+ AV_WL16(dest + 8 * i + 6, A << 4);
}
}