aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/ogg_codec.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-09-04 09:26:18 +0200
committerMax Kellermann <max@duempel.org>2012-09-05 23:01:17 +0200
commit1536b5a9d602688354648106ca8d0e34cac3c933 (patch)
treeb10491abb2502bf399a1f2c6184894bcfcf0ec17 /src/decoder/ogg_codec.c
parentbab756a5d06463f992ece8c9ec0a5dfb8e4007c9 (diff)
downloadmpd-1536b5a9d602688354648106ca8d0e34cac3c933.tar.gz
mpd-1536b5a9d602688354648106ca8d0e34cac3c933.tar.xz
mpd-1536b5a9d602688354648106ca8d0e34cac3c933.zip
src/decoder/opus: new decoder plugin for the Opus codec
Using libopus and libogg.
Diffstat (limited to '')
-rw-r--r--src/decoder/ogg_codec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/decoder/ogg_codec.c b/src/decoder/ogg_codec.c
index e016e5181..7416f27da 100644
--- a/src/decoder/ogg_codec.c
+++ b/src/decoder/ogg_codec.c
@@ -41,5 +41,8 @@ ogg_codec_detect(struct decoder *decoder, struct input_stream *is)
memcmp(buf + 28, "fLaC", 4) == 0)
return OGG_CODEC_FLAC;
+ if (memcmp(buf + 28, "Opus", 4) == 0)
+ return OGG_CODEC_OPUS;
+
return OGG_CODEC_VORBIS;
}