Add: register all for FFmpeg

This commit is contained in:
AreaScout 2018-11-25 19:52:34 +00:00
parent e21e2074e3
commit aee5d9968b
2 changed files with 4 additions and 1 deletions

View File

@ -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) { 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 // Initialize the avcodec library and register codecs
av_log_set_level(AV_LOG_QUIET); 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); av_init_packet(&pkt);

@ -1 +1 @@
Subproject commit 6bb60b19775bae2097855bd5d67aed2d7e023dfe Subproject commit 470d057a252c0af7fc04be39eee3426de79bc3dc