Skip to content
Snippets Groups Projects
Commit 1bebbd46 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

media decoder: cleanup

Change-Id: I5b663b0fa732517e25dca7f016c456dba9c8f3ab
parent f381f0df
No related branches found
No related tags found
No related merge requests found
......@@ -594,7 +594,7 @@ MediaDecoder::prepareDecoderContext()
if (decoderCtx_->framerate.num == 0 || decoderCtx_->framerate.den == 0)
decoderCtx_->framerate = {30, 1};
}
if (avStream_->codecpar->codec_type == AVMEDIA_TYPE_AUDIO) {
else if (avStream_->codecpar->codec_type == AVMEDIA_TYPE_AUDIO) {
if (decoderCtx_->codec_id == AV_CODEC_ID_OPUS) {
av_opt_set_int(decoderCtx_, "decode_fec", fecEnabled_ ? 1 : 0, AV_OPT_SEARCH_CHILDREN);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment