[FFmpeg-devel] [PATCH] Fix implicit cast warnings in libswscale/swscale.c

Eli Friedman eli.friedman
Sun Jun 27 03:49:59 CEST 2010


Patch attached; the relevant warnings come from the references to
these functions from sws_init_swScale in swscale_template.c, which
expect the corrected signature.  (The old and new versions have the
same calling convention on all commonly-used architectures, so the
issue doesn't have any visible effects besides the warning.)

-Eli
-------------- next part --------------
Index: libswscale/swscale.c
===================================================================
--- libswscale/swscale.c	(revision 31559)
+++ libswscale/swscale.c	(working copy)
@@ -989,7 +989,7 @@
     }
 }
 
-static inline void rgb48ToY(uint8_t *dst, const uint8_t *src, int width,
+static inline void rgb48ToY(uint8_t *dst, const uint8_t *src, long width,
                             uint32_t *unused)
 {
     int i;
@@ -1004,7 +1004,7 @@
 
 static inline void rgb48ToUV(uint8_t *dstU, uint8_t *dstV,
                              const uint8_t *src1, const uint8_t *src2,
-                             int width, uint32_t *unused)
+                             long width, uint32_t *unused)
 {
     int i;
     assert(src1==src2);
@@ -1020,7 +1020,7 @@
 
 static inline void rgb48ToUV_half(uint8_t *dstU, uint8_t *dstV,
                                   const uint8_t *src1, const uint8_t *src2,
-                                  int width, uint32_t *unused)
+                                  long width, uint32_t *unused)
 {
     int i;
     assert(src1==src2);



More information about the ffmpeg-devel mailing list