[MPlayer-cvslog] r38647 - trunk/libmpcodecs/vf_scale.c

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


Author: cigaes
Date: Sat Sep 21 12:30:06 2024
New Revision: 38647

Log:
libmpcodecs/vf_scale: explicit pointer casts

Recent compilers consider implicit casts an error.

Modified:
   trunk/libmpcodecs/vf_scale.c

Modified: trunk/libmpcodecs/vf_scale.c
==============================================================================
--- trunk/libmpcodecs/vf_scale.c	Sat Sep 21 12:30:05 2024	(r38646)
+++ trunk/libmpcodecs/vf_scale.c	Sat Sep 21 12:30:06 2024	(r38647)
@@ -439,14 +439,14 @@ static void scale(struct SwsContext *sws
         int src_stride2[MP_MAX_PLANES]={2*src_stride[0], 2*src_stride[1], 2*src_stride[2], 2*src_stride[3]};
         int dst_stride2[MP_MAX_PLANES]={2*dst_stride[0], 2*dst_stride[1], 2*dst_stride[2], 2*dst_stride[3]};
 
-        sws_scale(sws1, src2, src_stride2, y>>1, h>>1, dst2, dst_stride2);
+        sws_scale(sws1, (const uint8_t *const *)src2, src_stride2, y>>1, h>>1, dst2, dst_stride2);
         for(i=0; i<MP_MAX_PLANES; i++){
             src2[i] += src_stride[i];
             dst2[i] += dst_stride[i];
         }
-        sws_scale(sws2, src2, src_stride2, y>>1, h>>1, dst2, dst_stride2);
+        sws_scale(sws2, (const uint8_t *const *)src2, src_stride2, y>>1, h>>1, dst2, dst_stride2);
     }else{
-        sws_scale(sws1, src2, src_stride, y, h, dst, dst_stride);
+        sws_scale(sws1, (const uint8_t *const *)src2, src_stride, y, h, dst, dst_stride);
     }
 }
 


More information about the MPlayer-cvslog mailing list