mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
ffmpegdec change debug output
This commit is contained in:
@@ -73,16 +73,13 @@ static OpenThreads::Mutex mutex;
|
|||||||
|
|
||||||
static int cover_count = 0;
|
static int cover_count = 0;
|
||||||
|
|
||||||
#if 0
|
static void __attribute__ ((unused)) log_callback(void *, int, const char *format, va_list ap)
|
||||||
static void log_callback(void *, int, const char *format, va_list ap)
|
|
||||||
{
|
{
|
||||||
vfprintf(stderr, format, ap);
|
vfprintf(stderr, format, ap);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
CFfmpegDec::CFfmpegDec(void)
|
CFfmpegDec::CFfmpegDec(void)
|
||||||
{
|
{
|
||||||
//av_log_set_callback(log_callback);
|
|
||||||
meta_data_valid = false;
|
meta_data_valid = false;
|
||||||
buffer_size = 0x1000;
|
buffer_size = 0x1000;
|
||||||
buffer = NULL;
|
buffer = NULL;
|
||||||
@@ -134,7 +131,12 @@ bool CFfmpegDec::Init(void *_in, const CFile::FileType /* ft */)
|
|||||||
bitrate = 0;
|
bitrate = 0;
|
||||||
|
|
||||||
#ifdef FFDEC_DEBUG
|
#ifdef FFDEC_DEBUG
|
||||||
|
av_log_set_flags(AV_LOG_SKIP_REPEATED);
|
||||||
av_log_set_level(AV_LOG_DEBUG);
|
av_log_set_level(AV_LOG_DEBUG);
|
||||||
|
av_log_set_callback(log_callback);
|
||||||
|
#else
|
||||||
|
av_log_set_flags(AV_LOG_SKIP_REPEATED);
|
||||||
|
av_log_set_level(AV_LOG_INFO);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
AVIOContext *avioc = NULL;
|
AVIOContext *avioc = NULL;
|
||||||
|
Reference in New Issue
Block a user