mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 00:51:37 +00:00
hwcontext_vulkan: align host mapping size to minImportedHostPointerAlignment
This was left out of the recent rewrite of the system. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
9a5fcad214
commit
d6bf4c7d73
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user