# HG changeset patch
# User nick
# Date 1004379907 0
# Node ID 28d30f50d89c0652f93ffffe5bc31b62b700cdc3
# Parent  6426007cad63780f2e8be7a0c2ba338a415a21b2
memalign 64

diff -r 6426007cad63 -r 28d30f50d89c libvo/vo_vesa.c
--- a/libvo/vo_vesa.c	Mon Oct 29 18:24:29 2001 +0000
+++ b/libvo/vo_vesa.c	Mon Oct 29 18:25:07 2001 +0000
@@ -25,6 +25,10 @@
 #include "video_out.h"
 #include "video_out_internal.h"
 
+#ifdef HAVE_MEMALIGN
+#include <malloc.h>
+#endif
+
 #include "fastmemcpy.h"
 #include "yuv2rgb.h"
 #include "sub.h"
@@ -622,7 +626,11 @@
 			,x_offset,y_offset);
 		if(yuv_fmt || rgb2rgb_fnc)
 		{
+#ifdef HAVE_MEMALIGN
+		  if(!(yuv_buffer = memalign(64,video_mode_info.XResolution*video_mode_info.YResolution*video_mode_info.BitsPerPixel)))
+#else
 		  if(!(yuv_buffer = malloc(video_mode_info.XResolution*video_mode_info.YResolution*video_mode_info.BitsPerPixel)))
+#endif
 		  {
 		    printf("vo_vesa: Can't allocate temporary buffer\n");
 		    return -1;