Skip to content

Commit 392bf48

Browse files
committed
decoder/ffmpeg: handle "*.opus" files
Yet another special case which is needed because Opus is a codec and not a demuxer.
1 parent 9441f4a commit 392bf48

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
ver 0.24.6 (not yet released)
22
* decoder
3+
- ffmpeg: handle "*.opus" files
34
- mpg123: another workaround for libmpg123 ID3 corruption bug
45
- opus: fix seeking in files with large OpusTags
56

src/decoder/plugins/FfmpegDecoderPlugin.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,9 @@ ffmpeg_suffixes() noexcept
726726
suffixes.emplace("dsf"sv);
727727
} else if (StringIsEqual(codec->name, "dst")) {
728728
suffixes.emplace("dst"sv);
729+
} else if (StringIsEqual(codec->name, "opus") ||
730+
StringIsEqual(codec->name, "libopus")) {
731+
suffixes.emplace("opus"sv);
729732
} else if (StringStartsWith(codec->name, "wma"sv)) {
730733
/* there are codecs "wmav1", "wmav2" etc. and
731734
they usually come in "*.wma" files */

0 commit comments

Comments
 (0)