Skip to content
Snippets Groups Projects
Commit f6155a70 authored by Philip-Dylan Gleonec's avatar Philip-Dylan Gleonec Committed by Adrien Béraud
Browse files

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
parent 1db7678e
Branches
No related tags found
No related merge requests found
...@@ -46,6 +46,8 @@ findDecoder(const enum AVCodecID codec_id) ...@@ -46,6 +46,8 @@ findDecoder(const enum AVCodecID codec_id)
case AV_CODEC_ID_VP9: case AV_CODEC_ID_VP9:
codec_name = "vp9_mediacodec"; break; codec_name = "vp9_mediacodec"; break;
#endif #endif
case AV_CODEC_ID_OPUS:
codec_name = "libopus"; break;
default: default:
codec_name = nullptr; codec_name = nullptr;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment