diff --git a/ffmpeg.c b/ffmpeg.c
index 061d65bd6f45d85c96f9d25a049ade56097512c0..fe5d212a7f9ab455dd59894c77600b67249284ea 100644
--- 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];