[MPlayer-cvslog] r38652 - trunk/libvo/vo_aa.c

cigaes subversion at mplayerhq.hu
Sat Sep 21 12:30:10 EEST 2024


Author: cigaes
Date: Sat Sep 21 12:30:10 2024
New Revision: 38652

Log:
libvo/vo_aa: explicit pointer casts

Recent compilers consider implicit casts an error.

Modified:
   trunk/libvo/vo_aa.c

Modified: trunk/libvo/vo_aa.c
==============================================================================
--- trunk/libvo/vo_aa.c	Sat Sep 21 12:30:09 2024	(r38651)
+++ trunk/libvo/vo_aa.c	Sat Sep 21 12:30:10 2024	(r38652)
@@ -357,7 +357,7 @@ draw_frame(uint8_t *src[]) {
     break;
   }
 
-  sws_scale(sws,src,stride,0,src_height,image,image_stride);
+  sws_scale(sws,(const uint8_t *const *)src,stride,0,src_height,image,image_stride);
 
    /* Now 'ASCIInate' the image */
   if (fast)
@@ -377,7 +377,7 @@ draw_slice(uint8_t *src[], int stride[],
   int dx2 = screen_x + ((x+w) * screen_w / src_width);
   int dy2 = screen_y + ((y+h) * screen_h / src_height);
 
-  sws_scale(sws,src,stride,y,h,image,image_stride);
+  sws_scale(sws,(const uint8_t *const *)src,stride,y,h,image,image_stride);
 
   /* Now 'ASCIInate' the image */
   if (fast)


More information about the MPlayer-cvslog mailing list