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 a61d95f commit 0f7508fCopy full SHA for 0f7508f
src/AvTranscoder/properties/VideoProperties.cpp
@@ -392,16 +392,14 @@ size_t VideoProperties::getNbFrames() const
392
LOG_INFO("Need a deeper analysis: see eAnalyseLevelFirstGop.")
393
return 0;
394
}
395
- else
+
396
+ if(! _nbFrames)
397
{
- if(! _nbFrames)
398
- {
399
- LOG_INFO("Estimate the number of frames from the fps and the duration.")
400
- return getFps() * getDuration();
401
- }
402
- LOG_INFO("Get the exact number of frames.")
403
- return _nbFrames;
+ LOG_INFO("Estimate the number of frames from the fps and the duration.")
+ return getFps() * getDuration();
404
+ LOG_INFO("Get the exact number of frames.")
+ return _nbFrames;
405
406
407
size_t VideoProperties::getTicksPerFrame() const
0 commit comments