[Mplayer-cvslog] CVS: main/libvo vo_vesa.c,1.24,1.25
Nick Kurshev
nick at mplayer.dev.hu
Mon Oct 29 19:25:11 CET 2001
Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv1162/main/libvo
Modified Files:
vo_vesa.c
Log Message:
memalign 64
Index: vo_vesa.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_vesa.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- vo_vesa.c 28 Oct 2001 18:30:59 -0000 1.24
+++ vo_vesa.c 29 Oct 2001 18:25:07 -0000 1.25
@@ -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;
More information about the MPlayer-cvslog
mailing list