libobs, obs-ffmpeg, win-dshow: Fix FFmpeg 4.0 deprecation

Fixes FFmpeg 4.0 deprecation warnings.
This commit is contained in:
jp9000
2019-07-28 18:31:43 -07:00
parent a3fface27f
commit 68a5a40df9
11 changed files with 50 additions and 3 deletions

View File

@@ -722,9 +722,11 @@ bool mp_media_init(mp_media_t *media, const struct mp_media_info *info)
static bool initialized = false;
if (!initialized) {
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 9, 100)
av_register_all();
avdevice_register_all();
avcodec_register_all();
#endif
avdevice_register_all();
avformat_network_init();
initialized = true;
}