mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 02:32:36 +01:00
cellAVdec: constify AVCodec for ffmpeg >= 5.0
rpcs3/Emu/Cell/Modules/cellAdec.cpp:325:12: error: assigning to 'AVCodec *' from 'const AVCodec *' discards qualifiers codec = avcodec_find_decoder(AV_CODEC_ID_ATRAC3P); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rpcs3/Emu/Cell/Modules/cellAdec.cpp:331:12: error: assigning to 'AVCodec *' from 'const AVCodec *' discards qualifiers codec = avcodec_find_decoder(AV_CODEC_ID_MP3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rpcs3/Emu/Cell/Modules/cellVdec.cpp:143:12: error: assigning to 'AVCodec *' from 'const AVCodec *' discards qualifiers codec = avcodec_find_decoder(AV_CODEC_ID_MPEG2VIDEO); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rpcs3/Emu/Cell/Modules/cellVdec.cpp:148:12: error: assigning to 'AVCodec *' from 'const AVCodec *' discards qualifiers codec = avcodec_find_decoder(AV_CODEC_ID_H264); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rpcs3/Emu/Cell/Modules/cellVdec.cpp:153:12: error: assigning to 'AVCodec *' from 'const AVCodec *' discards qualifiers codec = avcodec_find_decoder(AV_CODEC_ID_MPEG4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
00274bb4da
commit
511ca82e30
@ -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;
|
||||
|
@ -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{};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user