1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-15 06:52:34 +02:00

Enable av_register_all() for older version of ffmpeg

They require it before calling  avformat_alloc_context()
This commit is contained in:
Filip Gawin 2018-08-14 23:16:25 +02:00
parent cb69ad596e
commit ed24fe71aa

View File

@ -76,6 +76,12 @@ bool SoundManager::initializeAVCodec() {
av_log_set_level(AV_LOG_ERROR);
#endif
// Some older versions of FFmpeg require it
// before calling avformat_alloc_context()
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 9, 100)
av_register_all();
#endif
return true;
}