[MPlayer-cvslog] CVS: main/libvo vo_vesa.c,1.103,1.104

Richard Felker CVS syncmail at mplayerhq.hu
Thu Feb 24 18:08:56 CET 2005


CVS change done by Richard Felker CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv10568/libvo

Modified Files:
	vo_vesa.c 
Log Message:
strides should always be signed

Index: vo_vesa.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_vesa.c,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -r1.103 -r1.104
--- vo_vesa.c	6 Oct 2004 08:42:12 -0000	1.103
+++ vo_vesa.c	24 Feb 2005 17:08:54 -0000	1.104
@@ -277,7 +277,7 @@
 /* is called for yuv only */
 static uint32_t draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y)
 {
-    unsigned int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
+    int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
     uint8_t *dst[3]= {dga_buffer, NULL, NULL};
     int dstStride[3];
     if(verbose > 2)
@@ -296,7 +296,7 @@
 
 static void draw_alpha_32(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)
 {
-   unsigned int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
+   int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
 #ifndef OSD_OUTSIDE_MOVIE
    if(HAS_DGA())
    {
@@ -309,7 +309,7 @@
 
 static void draw_alpha_24(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)
 {
-   unsigned int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
+   int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
 #ifndef OSD_OUTSIDE_MOVIE
    if(HAS_DGA())
    {
@@ -322,7 +322,7 @@
 
 static void draw_alpha_16(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)
 {
-   unsigned int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
+   int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
 #ifndef OSD_OUTSIDE_MOVIE
    if(HAS_DGA())
    {
@@ -335,7 +335,7 @@
 
 static void draw_alpha_15(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)
 {
-   unsigned int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
+   int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
 #ifndef OSD_OUTSIDE_MOVIE
    if(HAS_DGA())
    {
@@ -416,7 +416,7 @@
         printf("vo_vesa: draw_frame was called\n");
     if(sws)
     {
-	unsigned int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
+	int dstride=HAS_DGA()?video_mode_info.XResolution:dstW;
 	int srcStride[1];
 	uint8_t *dst[3]= {dga_buffer, NULL, NULL};
 	int dstStride[3];




More information about the MPlayer-cvslog mailing list