Skip to content

Commit b977583

Browse files
author
Clement Champetier
committed
VideoProperties: fix progress of full analysis
The current frame is already decoded when we call the callback.
1 parent b01356f commit b977583

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/AvTranscoder/properties/VideoProperties.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,7 @@ size_t VideoProperties::analyseFull(IProgress& progress)
609609
_nbFrames = nbDecodedFrames;
610610
while(decoder.decodeNextFrame(frame))
611611
{
612-
progress.progress(_nbFrames, estimateNbFrames);
613-
++_nbFrames;
612+
progress.progress(++_nbFrames, estimateNbFrames);
614613
}
615614

616615
// Check GOP size

0 commit comments

Comments
 (0)