Mpeg: Remove deprecated codec register calls.

This commit is contained in:
Unknown W. Brackets committed 2021-02-18 00:20:27 -08:00
1 parent e4ef9cd4f5
commit 2362d71d70
4 files changed
+14

No files matched your search

+4
View File
@@ -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();