Enable ffmpeg logging during codec initialization

This commit is contained in:
Cameron Gutman
2018-08-02 22:48:40 -07:00
parent b8dd131af8
commit 509dba2264

View File

@@ -167,6 +167,11 @@ bool FFmpegVideoDecoder::completeInitialization(AVCodec* decoder, int videoForma
}
}
#ifdef QT_DEBUG
// Restore default log level before streaming
av_log_set_level(AV_LOG_INFO);
#endif
return true;
}
@@ -205,6 +210,11 @@ bool FFmpegVideoDecoder::initialize(
{
AVCodec* decoder;
#ifdef QT_DEBUG
// Increase log level during initialization
av_log_set_level(AV_LOG_DEBUG);
#endif
if (videoFormat & VIDEO_FORMAT_MASK_H264) {
decoder = avcodec_find_decoder(AV_CODEC_ID_H264);
}