From 5ad6e7fec5271f173816a2ca83559d0407032c14 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 1 Feb 2020 11:26:57 +0100 Subject: [PATCH] decoder/{audio,snd}file: handle MIME type "audio/wav" --- NEWS | 2 +- src/decoder/plugins/AudiofileDecoderPlugin.cxx | 2 ++ src/decoder/plugins/SndfileDecoderPlugin.cxx | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index acf2f70b5..357e739eb 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,6 @@ ver 0.21.20 (not yet released) * decoder - - ffmpeg: handle MIME type "audio/wav" + - audiofile, ffmpeg, sndfile: handle MIME type "audio/wav" - vorbis, opus: fix seeking in small files ver 0.21.19 (2020/01/17) diff --git a/src/decoder/plugins/AudiofileDecoderPlugin.cxx b/src/decoder/plugins/AudiofileDecoderPlugin.cxx index 8ebc68ca4..3ecfb4bba 100644 --- a/src/decoder/plugins/AudiofileDecoderPlugin.cxx +++ b/src/decoder/plugins/AudiofileDecoderPlugin.cxx @@ -269,6 +269,8 @@ static const char *const audiofile_suffixes[] = { }; static const char *const audiofile_mime_types[] = { + "audio/wav", + "audio/aiff", "audio/x-wav", "audio/x-aiff", nullptr diff --git a/src/decoder/plugins/SndfileDecoderPlugin.cxx b/src/decoder/plugins/SndfileDecoderPlugin.cxx index 08cbb88c1..de0f45112 100644 --- a/src/decoder/plugins/SndfileDecoderPlugin.cxx +++ b/src/decoder/plugins/SndfileDecoderPlugin.cxx @@ -322,6 +322,8 @@ static const char *const sndfile_suffixes[] = { }; static const char *const sndfile_mime_types[] = { + "audio/wav", + "audio/aiff", "audio/x-wav", "audio/x-aiff",