diff options
author | Lynne <dev@lynne.ee> | 2024-08-15 00:52:33 +0200 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2024-08-16 01:22:16 +0200 |
commit | 604dfdb44c7261b8a8608d55727d2a7e848d3d1e (patch) | |
tree | 015497a9269a04bfb42687b214e99600c9e07200 | |
parent | 18d964fc2c520dd690aa3d737aea62e60fc3786b (diff) | |
download | ffmpeg-604dfdb44c7261b8a8608d55727d2a7e848d3d1e.tar.gz |
hwcontext_vulkan: align host mapping size to minImportedHostPointerAlignment
This was left out of the recent rewrite of the system.
-rw-r--r-- | libavutil/hwcontext_vulkan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index 3e00781e9e..e4f155db6e 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -3830,6 +3830,7 @@ static int host_map_frame(AVHWFramesContext *hwfc, AVBufferRef **dst, int *nb_bu /* Add the offset at the start, which gets ignored */ buffer_size = offs + swf->linesize[i]*p_h; buffer_size = FFALIGN(buffer_size, p->props.properties.limits.minMemoryMapAlignment); + buffer_size = FFALIGN(buffer_size, p->hprops.minImportedHostPointerAlignment); /* Create a buffer */ vkb = av_mallocz(sizeof(*vkb)); |