diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-05-29 15:34:30 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-05-29 15:34:30 +0200 |
commit | 29368be3b68640610983fe96828e08d08164c71e (patch) | |
tree | 63275f2fceb784bdde6b76028f5491e67d6df8f4 | |
parent | 18dbba1a8b1ced0f84cb7340310fa37a2a92030e (diff) |
added mp4 file extension to ffmpeg plugin
-rw-r--r-- | plugins/ffmpeg/ffmpeg.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/ffmpeg/ffmpeg.c b/plugins/ffmpeg/ffmpeg.c index 2a9ac0bc..fd220fbf 100644 --- a/plugins/ffmpeg/ffmpeg.c +++ b/plugins/ffmpeg/ffmpeg.c @@ -55,7 +55,7 @@ static DB_decoder_t plugin; static DB_functions_t *deadbeef; -static const char * exts[] = { "m4a", "mpc", "mp+", "mpp", "wma", "shn", "aa3", "oma", "ac3", "vqf", "tta", NULL }; +static const char * exts[] = { "m4a", "mp4", "mpc", "mp+", "mpp", "wma", "shn", "aa3", "oma", "ac3", "vqf", "tta", NULL }; enum { FT_AAC = 0, @@ -520,6 +520,9 @@ ffmpeg_insert (DB_playItem_t *after, const char *fname) { if (!strcasecmp (ext, "m4a")) { filetype = filetypes[FT_M4A]; } + else if (!strcasecmp (ext, "mp4")) { + filetype = filetypes[FT_M4A]; + } else if (!strcasecmp (ext, "mpc") || !strcasecmp (ext, "mp+") || !strcasecmp (ext, "mpp")) { filetype = filetypes[FT_MUSEPACK]; } |