Skip to content

Commit 3ff7f98

Browse files
author
Clement Champetier
committed
Transcoder: clean process method
1 parent 34c88ee commit 3ff7f98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/AvTranscoder/transcoder/Transcoder.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ void Transcoder::process( IProgress& progress )
278278

279279
preProcessCodecLatency();
280280

281-
double totalDuration = getOutputDuration();
281+
double outputDuration = getOutputDuration();
282282

283283
size_t frame = 0;
284284
bool frameProcessed = true;
@@ -292,11 +292,11 @@ void Transcoder::process( IProgress& progress )
292292
double progressDuration = _outputFile.getStream( 0 ).getStreamDuration();
293293

294294
// check progressDuration
295-
if( progressDuration > totalDuration)
295+
if( progressDuration > outputDuration )
296296
break;
297297

298298
// check if JobStatusCancel
299-
if( progress.progress( ( progressDuration > totalDuration )? totalDuration : progressDuration, totalDuration ) == eJobStatusCancel )
299+
if( progress.progress( ( progressDuration > outputDuration ) ? outputDuration : progressDuration, outputDuration ) == eJobStatusCancel )
300300
break;
301301

302302
++frame;

0 commit comments

Comments
 (0)