mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avfilter: align allocated images to 32 for AVX and IFF
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
fd3e75d2d4
commit
8f025f2f60
@ -63,7 +63,7 @@ AVFilterBufferRef *avfilter_default_get_video_buffer(AVFilterLink *link, int per
|
|||||||
pool = link->pool = av_mallocz(sizeof(AVFilterPool));
|
pool = link->pool = av_mallocz(sizeof(AVFilterPool));
|
||||||
|
|
||||||
// align: +2 is needed for swscaler, +16 to be SIMD-friendly
|
// align: +2 is needed for swscaler, +16 to be SIMD-friendly
|
||||||
if ((i = av_image_alloc(data, linesize, w, h, link->format, 16)) < 0)
|
if ((i = av_image_alloc(data, linesize, w, h, link->format, 32)) < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
picref = avfilter_get_video_buffer_ref_from_arrays(data, linesize,
|
picref = avfilter_get_video_buffer_ref_from_arrays(data, linesize,
|
||||||
|
Loading…
Reference in New Issue
Block a user