We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 103c33f commit efcccedCopy full SHA for efccced
src/AvTranscoder/properties/VideoProperties.cpp
@@ -328,7 +328,12 @@ size_t VideoProperties::getBitRate() const
328
if(_codecContext->bit_rate || _codecContext->rc_max_rate)
329
return _codecContext->bit_rate;
330
331
- LOG_WARN("The bitrate of the stream '" << _streamIndex << "' of file '" << _formatContext->filename << "' is unknown.")
+ if(_levelAnalysis == eAnalyseLevelHeader)
332
+ {
333
+ LOG_WARN("The bitrate of the stream '" << _streamIndex << "' of file '" << _formatContext->filename << "' is unknown.")
334
+ return 0;
335
+ }
336
+
337
LOG_INFO("Compute the video bitrate by decoding the first GOP.")
338
339
if(!_codecContext->width || !_codecContext->height)
0 commit comments