mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 03:12:36 +01:00
Enable av_register_all() for older version of ffmpeg
They require it before calling avformat_alloc_context()
This commit is contained in:
parent
cb69ad596e
commit
ed24fe71aa
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user