libobs, obs-ffmpeg, win-dshow: Fix FFmpeg 4.0 deprecation
Fixes FFmpeg 4.0 deprecation warnings.
This commit is contained in:
4
deps/media-playback/media-playback/media.c
vendored
4
deps/media-playback/media-playback/media.c
vendored
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user