Commit 5f4ec7de authored by Max Kellermann's avatar Max Kellermann

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

For libavcodec 59 support. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1333
parent 6f81bb4b
ver 0.23.4 (not yet released)
* decoder
- ffmpeg: support libavcodec 59
* output
- alsa: add option "thesycon_dsd_workaround" to work around device bug
* fix crash on debug builds if startup fails
......
......@@ -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");
......
......@@ -36,7 +36,7 @@ class CodecContext {
public:
CodecContext() = default;
explicit CodecContext(AVCodec &codec)
explicit CodecContext(const AVCodec &codec)
:codec_context(avcodec_alloc_context3(&codec))
{
if (codec_context == nullptr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment