From aee5d9968ba7fe85646fe003405b3a34cf6d0abc Mon Sep 17 00:00:00 2001 From: AreaScout Date: Sun, 25 Nov 2018 19:52:34 +0000 Subject: [PATCH] Add: register all for FFmpeg --- src/video/ffmpeg.c | 3 +++ third_party/moonlight-common-c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/video/ffmpeg.c b/src/video/ffmpeg.c index 2f26fff..f6251e9 100644 --- a/src/video/ffmpeg.c +++ b/src/video/ffmpeg.c @@ -49,6 +49,9 @@ enum decoders ffmpeg_decoder; int ffmpeg_init(int videoFormat, int width, int height, int perf_lvl, int buffer_count, int thread_count) { // Initialize the avcodec library and register codecs av_log_set_level(AV_LOG_QUIET); +#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58,10,100) + avcodec_register_all(); +#endif av_init_packet(&pkt); diff --git a/third_party/moonlight-common-c b/third_party/moonlight-common-c index 6bb60b1..470d057 160000 --- a/third_party/moonlight-common-c +++ b/third_party/moonlight-common-c @@ -1 +1 @@ -Subproject commit 6bb60b19775bae2097855bd5d67aed2d7e023dfe +Subproject commit 470d057a252c0af7fc04be39eee3426de79bc3dc