Browse code

avfilter: align allocated images to 32 for AVX and IFF

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2011/12/01 02:46:26
Showing 1 changed files
... ...
@@ -63,7 +63,7 @@ AVFilterBufferRef *avfilter_default_get_video_buffer(AVFilterLink *link, int per
63 63
         pool = link->pool = av_mallocz(sizeof(AVFilterPool));
64 64
 
65 65
     // align: +2 is needed for swscaler, +16 to be SIMD-friendly
66
-    if ((i = av_image_alloc(data, linesize, w, h, link->format, 16)) < 0)
66
+    if ((i = av_image_alloc(data, linesize, w, h, link->format, 32)) < 0)
67 67
         return NULL;
68 68
 
69 69
     picref = avfilter_get_video_buffer_ref_from_arrays(data, linesize,