[MPlayer-cvslog] r38659 - trunk/sub/spudec.c

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


Author: cigaes
Date: Sat Sep 21 12:30:17 2024
New Revision: 38659

Log:
sub/spudec: explicit pointer casts

Recent compilers consider implicit casts an error.

Modified:
   trunk/sub/spudec.c

Modified: trunk/sub/spudec.c
==============================================================================
--- trunk/sub/spudec.c	Sat Sep 21 12:30:16 2024	(r38658)
+++ trunk/sub/spudec.c	Sat Sep 21 12:30:17 2024	(r38659)
@@ -897,9 +897,9 @@ static void sws_spu_image(unsigned char
 	}
 
 	ctx=sws_getContext(sw, sh, AV_PIX_FMT_GRAY8, dw, dh, AV_PIX_FMT_GRAY8, SWS_GAUSS, &filter, NULL, NULL);
-	sws_scale(ctx,&s1,&ss,0,sh,&d1,&ds);
+	sws_scale(ctx,(const uint8_t *const *)&s1,&ss,0,sh,&d1,&ds);
 	for (i=ss*sh-1; i>=0; i--) s2[i] = -s2[i];
-	sws_scale(ctx,&s2,&ss,0,sh,&d2,&ds);
+	sws_scale(ctx,(const uint8_t *const *)&s2,&ss,0,sh,&d2,&ds);
 	for (i=ds*dh-1; i>=0; i--) d2[i] = -d2[i];
 	sws_freeContext(ctx);
 }


More information about the MPlayer-cvslog mailing list