mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
decoder_finder: force libopus for opus decoding
ffmpeg implements two opus decoders. libopusdec is a wrapper around the libopus reference opus library. opusdec is a native implementation, but lacks features such as FEC support in some distribution. Depending on the distribution configuration, ffmpeg can select either decoder for opus. This patch forces the use of libopus if it exists. If it does not, the function will fall back to opusdec. Issue: #4857 Change-Id: Ia1838a593c9199fc1cbda5f4596c318a8cdd886b
This commit is contained in:

committed by
Adrien Béraud

parent
1db7678e2e
commit
f6155a706d
@ -46,6 +46,8 @@ findDecoder(const enum AVCodecID codec_id)
|
||||
case AV_CODEC_ID_VP9:
|
||||
codec_name = "vp9_mediacodec"; break;
|
||||
#endif
|
||||
case AV_CODEC_ID_OPUS:
|
||||
codec_name = "libopus"; break;
|
||||
default:
|
||||
codec_name = nullptr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user