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

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