avfilter: align allocated images to 32 for AVX and IFF
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 30 Nov 2011 17:46:26 +0000 (18:46 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 30 Nov 2011 17:53:47 +0000 (18:53 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/defaults.c

index c962764..1b756a4 100644 (file)
@@ -63,7 +63,7 @@ AVFilterBufferRef *avfilter_default_get_video_buffer(AVFilterLink *link, int per
         pool = link->pool = av_mallocz(sizeof(AVFilterPool));
 
     // 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;
 
     picref = avfilter_get_video_buffer_ref_from_arrays(data, linesize,