decoder: make the suffixes and mime_types arrays really const

The strings were constant, but the pointers weren't.  C syntax is
somewhat tricky..
This commit is contained in:
Max Kellermann
2008-11-01 14:55:23 +01:00
parent 0b614fbaae
commit 4c1b96c307
11 changed files with 41 additions and 32 deletions

@@ -359,14 +359,14 @@ static struct tag *ffmpeg_tag(const char *file)
* only that files
*/
static const char *ffmpeg_Suffixes[] = {
static const char *const ffmpeg_Suffixes[] = {
"wma", "asf", "wmv", "mpeg", "mpg", "avi", "vob", "mov", "qt", "swf", "rm", "swf",
"mp1", "mp2", "mp3", "mp4", "m4a", "flac", "ogg", "wav", "au", "aiff", "aif", "ac3", "aac", "mpc",
NULL
};
//not sure if this is correct...
static const char *ffmpeg_Mimetypes[] = {
static const char *const ffmpeg_Mimetypes[] = {
"video/x-ms-asf",
"audio/x-ms-wma",
"audio/x-ms-wax",