diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-06-04 19:34:01 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-06-17 00:33:09 +0200 |
commit | 48427b012daf37653e8111f82812cb91a7f66362 (patch) | |
tree | 4f0884ff2977142c08d8e2577d2d7542fe6735c2 /libavutil/hwcontext_vulkan.c | |
parent | b3edc848727201123bbcc822164f7cf1d5a85353 (diff) | |
download | ffmpeg-48427b012daf37653e8111f82812cb91a7f66362.tar.gz |
avfilter/vf_overlay: Use correct alpha when > 8 bits
When chroma subsampling is in use, the filter averages
the corresponding (non subsampled) alpha values to get
the actual alpha value. When vertical subsampling is
in use, the next line is accessed via a[src->linesize[3]],
yet a is an uint16_t* for >8 bit formats and linesize
is always in bytes, so that this actually uses the second
line below the current one. This is fixed in this commit.
No FATE test needed updates, because the filter-overlay-yuv420p10
and filter-overlay-yuv444p10 tests use a yuv420p test file
that has constant opacity after conversion to yuva.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/hwcontext_vulkan.c')
0 files changed, 0 insertions, 0 deletions