OSDN Git Service

add const, suppress warnings
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sun, 1 Jun 2008 03:27:45 +0000 (03:27 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sun, 1 Jun 2008 03:27:45 +0000 (03:27 +0000)
Originally committed as revision 26945 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/swscale.c

index bca92ab..ac6f976 100644 (file)
@@ -2390,9 +2390,9 @@ SwsContext *sws_getContext(int srcW, int srcH, int srcFormat, int dstW, int dstH
     if (flags&SWS_PRINT_INFO)
     {
 #ifdef DITHER1XBPP
-        char *dither= " dithered";
+        const char *dither= " dithered";
 #else
-        char *dither= "";
+        const char *dither= "";
 #endif
         if (flags&SWS_FAST_BILINEAR)
             av_log(c, AV_LOG_INFO, "FAST_BILINEAR scaler, ");