From d146c0561f9ea779cf2786347622fa583fa25ba3 Mon Sep 17 00:00:00 2001 From: Lars Toenning Date: Fri, 25 Feb 2022 10:54:37 +0100 Subject: [PATCH] Fix compilation with libavcodec >5 API was constified: https://github.com/FFmpeg/FFmpeg/commit/626535f6a169e2d821b969e0ea77125ba7482113 --- simgear/screen/video-encoder-internal.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/screen/video-encoder-internal.hxx b/simgear/screen/video-encoder-internal.hxx index b268f092..810d0296 100644 --- a/simgear/screen/video-encoder-internal.hxx +++ b/simgear/screen/video-encoder-internal.hxx @@ -81,7 +81,7 @@ struct FfmpegEncoder struct SwsContext* m_sws_context = nullptr; AVFrame* m_frame_yuv = nullptr; - AVCodec* m_codec = nullptr; + const AVCodec* m_codec = nullptr; AVCodecContext* m_codec_context = nullptr; AVStream* m_stream = nullptr; AVPacket* m_packet = nullptr;