aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/ogg_codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/decoder/ogg_codec.c')
-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;
}