mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
PICK 37867533cd
This commit is contained in:
parent
f82f265ece
commit
6875876349
7 changed files with 98 additions and 25 deletions
|
@ -14,6 +14,8 @@ static const AVCodec* srs_find_decoder_by_id(SrsAudioCodecId id)
|
|||
{
|
||||
if (id == SrsAudioCodecIdAAC) {
|
||||
return avcodec_find_decoder_by_name("aac");
|
||||
} else if (id == SrsAudioCodecIdMP3) {
|
||||
return avcodec_find_decoder_by_name("mp3");
|
||||
} else if (id == SrsAudioCodecIdOpus) {
|
||||
const AVCodec* codec = avcodec_find_decoder_by_name("libopus");
|
||||
if (!codec) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue