mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 02:32:36 +01:00
cellVdec: constify AVInputFormat for ffmpeg >= 5.0
rpcs3/Emu/Cell/Modules/cellAdec.cpp:326:19: error: assigning to 'AVInputFormat *' from 'const AVInputFormat *' discards qualifiers input_format = av_find_input_format("oma"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ rpcs3/Emu/Cell/Modules/cellAdec.cpp:332:19: error: assigning to 'AVInputFormat *' from 'const AVInputFormat *' discards qualifiers input_format = av_find_input_format("mp3"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
511ca82e30
commit
f2ed50e6b0
@ -270,7 +270,11 @@ public:
|
||||
bool just_finished = false;
|
||||
|
||||
const AVCodec* codec = nullptr;
|
||||
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(59, 0, 0)
|
||||
const AVInputFormat* input_format = nullptr;
|
||||
#else
|
||||
AVInputFormat* input_format = nullptr;
|
||||
#endif
|
||||
AVCodecContext* ctx = nullptr;
|
||||
AVFormatContext* fmt = nullptr;
|
||||
u8* io_buf;
|
||||
|
Loading…
Reference in New Issue
Block a user