Skip to content

Commit cf43b3b

Browse files
author
Valentin Noel
committed
Transcoder: switch progress duration computing members (for using automatic cast to double)
1 parent d76c410 commit cf43b3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/transcoder/Transcoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ void Transcoder::process( IProgress& progress )
317317
break;
318318

319319
AVStream* firstOutputStream = _outputFile.getFormatContext().streams[0];
320-
double duration = firstOutputStream->cur_dts * av_q2d( firstOutputStream->time_base );
320+
double duration = av_q2d( firstOutputStream->time_base ) * firstOutputStream->cur_dts;
321321

322322
if( progress.progress( duration, totalDuration ) == eJobStatusCancel )
323323
{

0 commit comments

Comments
 (0)