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 53d90bc commit 31d7a0cCopy full SHA for 31d7a0c
src/AvTranscoder/transcoder/Transcoder.cpp
@@ -317,10 +317,7 @@ void Transcoder::process( IProgress& progress )
317
if( ! frameProcessed )
318
break;
319
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 )
+ if( progress.progress( _outputFile.getProgressDuration(), totalDuration ) == eJobStatusCancel )
324
{
325
326
}
0 commit comments