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

@@ -60,7 +60,9 @@
#include <gui/movieplayer.h>
#include <cs_api.h>
#if (LIBAVCODEC_VERSION_INT < AV_VERSION_INT( 57, 8, 0 ))
#if (LIBAVCODEC_VERSION_MAJOR > 55)
#define av_free_packet av_packet_unref
#else
#define av_packet_unref av_free_packet
#endif
@@ -795,8 +797,10 @@ bool CStreamStream::Open()
}
//av_log_set_level(AV_LOG_VERBOSE);
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 9, 100)
av_register_all();
avcodec_register_all();
#endif
avformat_network_init();
printf("%s: Open input [%s]....\n", __FUNCTION__, url.c_str());