fix(speaker): support const FFmpeg decoder API
This commit is contained in:
parent
0ac5e79751
commit
defe0a0670
@ -315,7 +315,7 @@ void ffmpegSpeaker::decode_audio_() {
|
||||
return;
|
||||
}
|
||||
|
||||
AVCodec* decoder = nullptr;
|
||||
const AVCodec* decoder = nullptr;
|
||||
const int stream_index = av_find_best_stream(fmt_ctx.get(), AVMEDIA_TYPE_AUDIO, -1, -1, &decoder, 0);
|
||||
if (stream_index < 0) {
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user