fix(speaker): support const FFmpeg decoder API

This commit is contained in:
linbo 2026-08-27 11:31:14 +08:00
parent 0ac5e79751
commit defe0a0670

View File

@ -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) {
{