change sws_format_name to return const char*, supress many warnings
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 6 Mar 2008 11:32:25 +0000 (11:32 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 6 Mar 2008 11:32:25 +0000 (11:32 +0000)
Originally committed as revision 26183 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/swscale.c
libswscale/swscale.h
libswscale/swscale_internal.h

index 1fc0ef47d6ac100dd73e049b868d74cca08e9cfd..22491085cfdf661f03c4dd7f2e721f3fa407a90f 100644 (file)
@@ -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:
index afd3ff3754d0ed1f80c561b2d08b23b5fa49dd2a..a0c735b696eb96fd6682336fb77473fcc250f575 100644 (file)
@@ -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, \
index 81b2f1afb900485e4d5d7926e706ebf7951d696f..ee14fc33bc491804ce70af80f891863da3030d6a 100644 (file)
@@ -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)  (           \