libarm use ffmpeg log

This commit is contained in:
Frankenstone
2019-03-04 17:22:14 +01:00
committed by Thilo Graf
parent a618e70a3e
commit d44e2b0419

View File

@@ -223,7 +223,7 @@ static int32_t flv2mpeg4_converter = 0;
/* MISC Functions */ /* MISC Functions */
/* ***************************** */ /* ***************************** */
static void ffmpeg_silen_callback(void *avcl __attribute__((unused)), int level __attribute__((unused)), const char *fmt __attribute__((unused)), va_list vl __attribute__((unused))) static void __attribute__ ((unused)) ffmpeg_silen_callback(void *avcl __attribute__((unused)), int level __attribute__((unused)), const char *fmt __attribute__((unused)), va_list vl __attribute__((unused)))
{ {
return; return;
} }
@@ -1915,9 +1915,12 @@ int32_t container_ffmpeg_init(Context_t *context, PlayFiles_t *playFilesNames)
avformat_network_init(); avformat_network_init();
#if FFMPEG_DEBUG_LEVEL >= 10 #if FFMPEG_DEBUG_LEVEL >= 10
av_log_set_flags(AV_LOG_SKIP_REPEATED);
av_log_set_level(AV_LOG_DEBUG); av_log_set_level(AV_LOG_DEBUG);
#else #else
av_log_set_callback(ffmpeg_silen_callback); av_log_set_flags(AV_LOG_SKIP_REPEATED);
av_log_set_level(AV_LOG_INFO);
//av_log_set_callback(ffmpeg_silen_callback);
#endif #endif
context->playback->abortRequested = 0; context->playback->abortRequested = 0;