From 1536b5a9d602688354648106ca8d0e34cac3c933 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 4 Sep 2012 09:26:18 +0200 Subject: src/decoder/opus: new decoder plugin for the Opus codec Using libopus and libogg. --- src/decoder/ogg_codec.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/decoder/ogg_codec.c') 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; } -- cgit v1.2.3