summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Raftopoulos <joerg@raftopoulos.net>2017-06-01 19:16:24 +0200
committerMax Kellermann <max@musicpd.org>2017-06-03 20:57:20 +0200
commit18b827b979d6d1f739770af8a6e6a2c1ae361859 (patch)
treef8c73a4feddb211e7496473fcc7fd7636b7306a2
parent0a379fc514930a49c4006da1d7a03cb32d535fb5 (diff)
decoder/ffmpeg: add support for adx
Add ffmpeg decoder support for *.adx files (Sega game console) Closes #60
-rw-r--r--NEWS2
-rw-r--r--src/decoder/plugins/FfmpegDecoderPlugin.cxx4
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 398685b13..c209cfa80 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,6 @@
ver 0.20.9 (not yet released)
+* decoder
+ - ffmpeg: support *.adx
* fix byte order detection on FreeBSD/aarch64
ver 0.20.8 (2017/05/19)
diff --git a/src/decoder/plugins/FfmpegDecoderPlugin.cxx b/src/decoder/plugins/FfmpegDecoderPlugin.cxx
index 2c9d3a8fa..75038e694 100644
--- a/src/decoder/plugins/FfmpegDecoderPlugin.cxx
+++ b/src/decoder/plugins/FfmpegDecoderPlugin.cxx
@@ -881,7 +881,8 @@ ffmpeg_scan_stream(InputStream &is,
* more formats.
*/
static const char *const ffmpeg_suffixes[] = {
- "16sv", "3g2", "3gp", "4xm", "8svx", "aa3", "aac", "ac3", "afc", "aif",
+ "16sv", "3g2", "3gp", "4xm", "8svx",
+ "aa3", "aac", "ac3", "adx", "afc", "aif",
"aifc", "aiff", "al", "alaw", "amr", "anim", "apc", "ape", "asf",
"atrac", "au", "aud", "avi", "avm2", "avs", "bap", "bfi", "c93", "cak",
"cin", "cmv", "cpk", "daud", "dct", "divx", "dts", "dv", "dvd", "dxa",
@@ -934,6 +935,7 @@ static const char *const ffmpeg_mime_types[] = {
"audio/x-16sv",
"audio/x-aac",
"audio/x-ac3",
+ "audio/x-adx",
"audio/x-aiff"
"audio/x-alaw",
"audio/x-au",