diff --git a/rwengine/src/audio/SoundSource.hpp b/rwengine/src/audio/SoundSource.hpp index 90a14345..bd618e06 100644 --- a/rwengine/src/audio/SoundSource.hpp +++ b/rwengine/src/audio/SoundSource.hpp @@ -90,7 +90,7 @@ private: AVFrame* frame = nullptr; AVFormatContext* formatContext = nullptr; AVStream* audioStream = nullptr; - AVCodec* codec = nullptr; + const AVCodec* codec = nullptr; SwrContext* swr = nullptr; AVCodecContext* codecContext = nullptr; AVPacket readingPacket;