aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/tls_openssl.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2025-07-15 12:46:11 +0200
committerNiklas Haas <git@haasn.dev>2025-07-15 12:46:11 +0200
commit053a113ad8f853c398c0e268408bfdc280b23f11 (patch)
tree03732625a0ec5d14782172ed88b13a22885fde29 /libavformat/tls_openssl.c
parentbedfb6eca402037f5cbb115fa767d106b8c14f1c (diff)
downloadffmpeg-053a113ad8f853c398c0e268408bfdc280b23f11.tar.gz
avutil/hwcontext_vulkan: don't over-map buffers with prior padding
If the image data is not at the start of the buffer allocation, such as when the buffer has padding before the image data, this function maps too much memory, since src_data + src_buf->size exceeds the buffer size. Fix this by subtracting the difference between the buffer start and the provided image data pointer from the size of the memory range to map. An easy way to reproduce this issue is using the vf_pad filter, which allocates image data buffers with a nonzero offset whenever padding is requested before the start of the image data.
Diffstat (limited to 'libavformat/tls_openssl.c')
0 files changed, 0 insertions, 0 deletions