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 7f1077f commit 84fc4bfCopy full SHA for 84fc4bf
src/AvTranscoder/properties/VideoProperties.cpp
@@ -374,7 +374,7 @@ size_t VideoProperties::getNbFrames() const
374
if(!_formatContext)
375
throw std::runtime_error("unknown format context");
376
377
- size_t nbFrames = _formatContext->streams[_streamIndex]->nb_frames;
+ const size_t nbFrames = _formatContext->streams[_streamIndex]->nb_frames;
378
if(nbFrames)
379
return nbFrames;
380
LOG_WARN("The number of frames of the stream '" << _streamIndex << "' of file '" << _formatContext->filename
0 commit comments