Skip to content

Commit 31d7a0c

Browse files
author
Valentin Noel
committed
Progress: update Transcoder progress computing
1 parent 53d90bc commit 31d7a0c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/AvTranscoder/transcoder/Transcoder.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,7 @@ void Transcoder::process( IProgress& progress )
317317
if( ! frameProcessed )
318318
break;
319319

320-
AVStream* firstOutputStream = _outputFile.getFormatContext().streams[0];
321-
double duration = av_q2d( firstOutputStream->time_base ) * firstOutputStream->cur_dts;
322-
323-
if( progress.progress( duration, totalDuration ) == eJobStatusCancel )
320+
if( progress.progress( _outputFile.getProgressDuration(), totalDuration ) == eJobStatusCancel )
324321
{
325322
break;
326323
}

0 commit comments

Comments
 (0)