Add 'const' attribute to the last_asked_format variable, fix a
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sat, 5 Dec 2009 15:14:01 +0000 (15:14 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sat, 5 Dec 2009 15:14:01 +0000 (15:14 +0000)
compiler warning.

Originally committed as revision 20740 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index 061d65b..fe5d212 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -91,7 +91,7 @@ static const OptionDef options[];
 
 #define MAX_FILES 20
 
-static char *last_asked_format = NULL;
+static const char *last_asked_format = NULL;
 static AVFormatContext *input_files[MAX_FILES];
 static int64_t input_files_ts_offset[MAX_FILES];
 static double input_files_ts_scale[MAX_FILES][MAX_STREAMS];