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

@@ -594,7 +594,9 @@ static bool ffmpeg_data_init(struct ffmpeg_data *data,
if (!config->url || !*config->url)
return false;
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 9, 100)
av_register_all();
#endif
avformat_network_init();
is_rtmp = (astrcmpi_n(config->url, "rtmp://", 7) == 0);