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 07a811f commit 2890f5bCopy full SHA for 2890f5b
src/AvTranscoder/properties/VideoProperties.cpp
@@ -334,7 +334,7 @@ size_t VideoProperties::getBitRate() const
334
throw std::runtime_error("cannot compute bit rate: invalid frame size");
335
336
// Needed to get the gop size
337
- if(_levelAnalysis < eAnalyseLevelFirstGop)
+ if(getGopSize() == 0)
338
throw std::runtime_error("cannot compute bit rate: need to get info from the first gop (see eAnalyseLevelFirstGop)");
339
340
// discard no frame type when decode
0 commit comments