aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vsrc_testsrc.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-10-16 12:51:29 -0300
committerJames Almer <jamrial@gmail.com>2024-10-17 11:59:30 -0300
commit062fcacc8ff65a53a21139e1a9132660c9a5abd3 (patch)
tree9d75f4af12d7e398f783c1c10af206ccc998a61c /libavfilter/vsrc_testsrc.c
parent601a3479466f4f03d27487dfc6fcb9430efb8fc6 (diff)
downloadffmpeg-062fcacc8ff65a53a21139e1a9132660c9a5abd3.tar.gz
avfilter/vsrc_testsrc: fill the xv30le alpha bits
As with other pixel formats, set the undefined alpha bits to opaque. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/vsrc_testsrc.c')
-rw-r--r--libavfilter/vsrc_testsrc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c
index d57464a6c0..6fd8c73757 100644
--- a/libavfilter/vsrc_testsrc.c
+++ b/libavfilter/vsrc_testsrc.c
@@ -1171,7 +1171,8 @@ static void yuvtest_put_pixel(uint8_t *dstp[4], int dst_linesizep[4],
case AV_PIX_FMT_XV30LE:
n = (y << ((desc->comp[0].offset*8) + desc->comp[0].shift)) +
(u << ((desc->comp[1].offset*8) + desc->comp[1].shift)) +
- (v << ((desc->comp[2].offset*8) + desc->comp[2].shift));
+ (v << ((desc->comp[2].offset*8) + desc->comp[2].shift)) +
+ (3U << (desc->comp[1].shift ? 0 : 30));
AV_WL32(&dstp[0][i*4 + j*dst_linesizep[0]], n);
break;
case AV_PIX_FMT_XV36: