fix ffmpeg compiler warnings, thx DboxOldie

This commit is contained in:
Frankenstone
2019-02-27 14:14:19 +01:00
committed by Thilo Graf
parent ef4bb7cff3
commit 4d52588842
5 changed files with 19 additions and 4 deletions

View File

@@ -307,9 +307,10 @@ void CStreamInfo2::probeStreams()
#ifdef ENABLE_FFMPEG_LOGGING
av_log_set_callback(log_callback);
#endif
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 9, 100)
avcodec_register_all();
av_register_all();
#endif
AVIOContext *avioc = NULL;
int buffer_size = 188 * 128;
unsigned char *buffer = (unsigned char *) av_malloc(buffer_size);