mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-14 01:59:34 +01:00
Mpeg: Remove deprecated codec register calls.
This commit is contained in:
1 parent
e4ef9cd4f5
commit
2362d71d70
4 files changed
+14
No files matched your search
@@ -65,7 +65,9 @@ static void InitAVCodec() {
|
||||
static bool first_run = true;
|
||||
if (first_run) {
|
||||
#ifdef USE_FFMPEG
|
||||
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58, 12, 100)
|
||||
av_register_all();
|
||||
#endif
|
||||
#endif
|
||||
first_run = false;
|
||||
}
|
||||
|
||||
@@ -636,8 +636,12 @@ void __AtracInit() {
|
||||
atracIDTypes[5] = 0;
|
||||
|
||||
#ifdef USE_FFMPEG
|
||||
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58, 18, 100)
|
||||
avcodec_register_all();
|
||||
#endif
|
||||
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58, 12, 100)
|
||||
av_register_all();
|
||||
#endif
|
||||
#endif // USE_FFMPEG
|
||||
}
|
||||
|
||||
|
||||
@@ -393,9 +393,13 @@ void __MpegInit() {
|
||||
actionPostPut = __KernelRegisterActionType(PostPutAction::Create);
|
||||
|
||||
#ifdef USE_FFMPEG
|
||||
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58, 18, 100)
|
||||
avcodec_register_all();
|
||||
#endif
|
||||
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58, 12, 100)
|
||||
av_register_all();
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
void __MpegDoState(PointerWrap &p) {
|
||||
|
||||
@@ -62,8 +62,12 @@ SimpleAudio::SimpleAudio(int audioType, int sample_rate, int channels)
|
||||
|
||||
void SimpleAudio::Init() {
|
||||
#ifdef USE_FFMPEG
|
||||
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58, 18, 100)
|
||||
avcodec_register_all();
|
||||
#endif
|
||||
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58, 12, 100)
|
||||
av_register_all();
|
||||
#endif
|
||||
InitFFmpeg();
|
||||
|
||||
frame_ = av_frame_alloc();
|
||||
|
||||
Reference in new issue
Block a user