From 0b9669259004bbe9050dfbcbe8196d8c17ac119c Mon Sep 17 00:00:00 2001 From: waker Date: Mon, 8 Nov 2010 20:20:55 +0100 Subject: bumped ffmpeg to 1.2: added support for AMR format --- lib-x86-32/libavcodec.a | Bin 4456812 -> 4589898 bytes lib-x86-32/libavcore.a | Bin 42030 -> 42146 bytes lib-x86-32/libavformat.a | Bin 1208954 -> 1252606 bytes lib-x86-32/libavutil.a | Bin 407860 -> 407976 bytes lib-x86-32/libopencore-amrnb.a | Bin 0 -> 1157144 bytes lib-x86-32/libopencore-amrwb.a | Bin 0 -> 397826 bytes plugins/ffmpeg/ChangeLog | 3 +++ plugins/ffmpeg/ffmpeg.c | 10 +++++++--- 8 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 lib-x86-32/libopencore-amrnb.a create mode 100644 lib-x86-32/libopencore-amrwb.a diff --git a/lib-x86-32/libavcodec.a b/lib-x86-32/libavcodec.a index 4e670cbc..6e429f4a 100644 Binary files a/lib-x86-32/libavcodec.a and b/lib-x86-32/libavcodec.a differ diff --git a/lib-x86-32/libavcore.a b/lib-x86-32/libavcore.a index 475ffffb..650b57ed 100644 Binary files a/lib-x86-32/libavcore.a and b/lib-x86-32/libavcore.a differ diff --git a/lib-x86-32/libavformat.a b/lib-x86-32/libavformat.a index 58dd2ab9..a7adafee 100644 Binary files a/lib-x86-32/libavformat.a and b/lib-x86-32/libavformat.a differ diff --git a/lib-x86-32/libavutil.a b/lib-x86-32/libavutil.a index c565f3d1..e53d807c 100644 Binary files a/lib-x86-32/libavutil.a and b/lib-x86-32/libavutil.a differ diff --git a/lib-x86-32/libopencore-amrnb.a b/lib-x86-32/libopencore-amrnb.a new file mode 100644 index 00000000..7ce4236c Binary files /dev/null and b/lib-x86-32/libopencore-amrnb.a differ diff --git a/lib-x86-32/libopencore-amrwb.a b/lib-x86-32/libopencore-amrwb.a new file mode 100644 index 00000000..64cef81b Binary files /dev/null and b/lib-x86-32/libopencore-amrwb.a differ diff --git a/plugins/ffmpeg/ChangeLog b/plugins/ffmpeg/ChangeLog index a3edb5f1..f3179866 100644 --- a/plugins/ffmpeg/ChangeLog +++ b/plugins/ffmpeg/ChangeLog @@ -1,2 +1,5 @@ +version 1.2 + Added AMR support via libopencore + version 1.1 Switched to ffmpeg commit 25472 diff --git a/plugins/ffmpeg/ffmpeg.c b/plugins/ffmpeg/ffmpeg.c index 498f0332..89917c83 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", "wma", "aa3", "oma", "ac3", "vqf", NULL }; +static const char * exts[] = { "m4a", "wma", "aa3", "oma", "ac3", "vqf", "amr", NULL }; enum { FT_ALAC = 0, @@ -63,10 +63,11 @@ enum { FT_ATRAC3 = 2, FT_VQF = 3, FT_AC3 = 4, + FT_AMR = 5, FT_UNKNOWN = 5 }; -static const char *filetypes[] = { "ALAC", "WMA", "ATRAC3", "VQF", "AC3", "FFMPEG (unknown)", NULL }; +static const char *filetypes[] = { "ALAC", "WMA", "ATRAC3", "VQF", "AC3", "AMR", "FFMPEG (unknown)", NULL }; #define FF_PROTOCOL_NAME "deadbeef" @@ -169,6 +170,9 @@ ffmpeg_init (DB_fileinfo_t *_info, DB_playItem_t *it) { else if (strcasestr (info->codec->name, "ac3")) { it->filetype = filetypes[FT_AC3]; } + else if (strcasestr (info->codec->name, "amr")) { + it->filetype = filetypes[FT_AMR]; + } else { it->filetype = filetypes[FT_UNKNOWN]; } @@ -715,7 +719,7 @@ ffmpeg_read_metadata (DB_playItem_t *it) { static DB_decoder_t plugin = { DB_PLUGIN_SET_API_VERSION .plugin.version_major = 1, - .plugin.version_minor = 1, + .plugin.version_minor = 2, .plugin.type = DB_PLUGIN_DECODER, .plugin.id = "ffmpeg", .plugin.name = "FFMPEG audio player", -- cgit v1.2.3