change sws_format_name to return const char*, supress many warnings
[ffmpeg.git] / libswscale / swscale.c
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: