diff --git a/rpcs3/Emu/Cell/Modules/cellAdec.cpp b/rpcs3/Emu/Cell/Modules/cellAdec.cpp index 7a6b047641..83ef53666d 100644 --- a/rpcs3/Emu/Cell/Modules/cellAdec.cpp +++ b/rpcs3/Emu/Cell/Modules/cellAdec.cpp @@ -269,7 +269,7 @@ public: bool just_started = false; bool just_finished = false; - AVCodec* codec = nullptr; + const AVCodec* codec = nullptr; AVInputFormat* input_format = nullptr; AVCodecContext* ctx = nullptr; AVFormatContext* fmt = nullptr; diff --git a/rpcs3/Emu/Cell/Modules/cellVdec.cpp b/rpcs3/Emu/Cell/Modules/cellVdec.cpp index 1ef537007a..bb73ce3212 100644 --- a/rpcs3/Emu/Cell/Modules/cellVdec.cpp +++ b/rpcs3/Emu/Cell/Modules/cellVdec.cpp @@ -102,7 +102,7 @@ struct vdec_context final static const u32 id_step = 0x00000100; static const u32 id_count = 1024; - AVCodec* codec{}; + const AVCodec* codec{}; AVCodecContext* ctx{}; SwsContext* sws{};