Skip to content

Commit 84fc4bf

Browse files
author
Clement Champetier
committed
VideoProperties: add const to local variables of getNbFrames
1 parent 7f1077f commit 84fc4bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/properties/VideoProperties.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ size_t VideoProperties::getNbFrames() const
374374
if(!_formatContext)
375375
throw std::runtime_error("unknown format context");
376376

377-
size_t nbFrames = _formatContext->streams[_streamIndex]->nb_frames;
377+
const size_t nbFrames = _formatContext->streams[_streamIndex]->nb_frames;
378378
if(nbFrames)
379379
return nbFrames;
380380
LOG_WARN("The number of frames of the stream '" << _streamIndex << "' of file '" << _formatContext->filename

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy