Enable ffmpeg logging during codec initialization
This commit is contained in:
parent
b8dd131af8
commit
509dba2264
1 changed files with 10 additions and 0 deletions
|
|
@ -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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -205,6 +210,11 @@ bool FFmpegVideoDecoder::initialize(
|
||||||
{
|
{
|
||||||
AVCodec* decoder;
|
AVCodec* decoder;
|
||||||
|
|
||||||
|
#ifdef QT_DEBUG
|
||||||
|
// Increase log level during initialization
|
||||||
|
av_log_set_level(AV_LOG_DEBUG);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (videoFormat & VIDEO_FORMAT_MASK_H264) {
|
if (videoFormat & VIDEO_FORMAT_MASK_H264) {
|
||||||
decoder = avcodec_find_decoder(AV_CODEC_ID_H264);
|
decoder = avcodec_find_decoder(AV_CODEC_ID_H264);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue