[MPlayer-cvslog] r26183 - in trunk/libswscale: swscale.c swscale.h swscale_internal.h

bcoudurier subversion at mplayerhq.hu
Thu Mar 6 12:32:25 CET 2008


Author: bcoudurier
Date: Thu Mar  6 12:32:25 2008
New Revision: 26183

Log:
change sws_format_name to return const char*, supress many warnings

Modified:
   trunk/libswscale/swscale.c
   trunk/libswscale/swscale.h
   trunk/libswscale/swscale_internal.h

Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c	(original)
+++ trunk/libswscale/swscale.c	Thu Mar  6 12:32:25 2008
@@ -276,7 +276,7 @@ static const AVOption options[] = {
 
 static AVClass sws_context_class = { "SWScaler", sws_context_to_name, options };
 
-char *sws_format_name(enum PixelFormat format)
+const char *sws_format_name(enum PixelFormat format)
 {
     switch (format) {
         case PIX_FMT_YUV420P:

Modified: trunk/libswscale/swscale.h
==============================================================================
--- trunk/libswscale/swscale.h	(original)
+++ trunk/libswscale/swscale.h	Thu Mar  6 12:32:25 2008
@@ -31,7 +31,7 @@
 
 #define LIBSWSCALE_VERSION_MAJOR 0
 #define LIBSWSCALE_VERSION_MINOR 5
-#define LIBSWSCALE_VERSION_MICRO 0
+#define LIBSWSCALE_VERSION_MICRO 1
 
 #define LIBSWSCALE_VERSION_INT  AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \
                                                LIBSWSCALE_VERSION_MINOR, \

Modified: trunk/libswscale/swscale_internal.h
==============================================================================
--- trunk/libswscale/swscale_internal.h	(original)
+++ trunk/libswscale/swscale_internal.h	Thu Mar  6 12:32:25 2008
@@ -193,7 +193,7 @@ void altivec_yuv2packedX (SwsContext *c,
                           int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,
                           uint8_t *dest, int dstW, int dstY);
 
-char *sws_format_name(int format);
+const char *sws_format_name(int format);
 
 //FIXME replace this with something faster
 #define isPlanarYUV(x)  (           \



More information about the MPlayer-cvslog mailing list