decoder/ffmpeg, lib/ffmpeg: make AVCodec pointers "const"

For libavcodec 59 support.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1333
This commit is contained in:
Max Kellermann
2021-11-09 21:07:11 +01:00
parent 6f81bb4b09
commit 5f4ec7de5b
3 changed files with 4 additions and 2 deletions

View File

@@ -502,7 +502,7 @@ FfmpegDecode(DecoderClient &client, InputStream *input,
FmtDebug(ffmpeg_domain, "codec '{}'",
codec_descriptor->name);
AVCodec *codec = avcodec_find_decoder(codec_params.codec_id);
const AVCodec *codec = avcodec_find_decoder(codec_params.codec_id);
if (!codec) {
LogError(ffmpeg_domain, "Unsupported audio codec");