Merge remote-tracking branch 'AreaScout/ffmpeg'

This commit is contained in:
Iwan Timmer 2019-01-18 19:09:06 +01:00
commit 4446c4fc5a

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) {
// 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);