Skip to content

Commit 854bac9

Browse files
author
Clement Champetier
committed
OutputFile: fix eWrappingWaitingForData when wrap
1 parent 14c699a commit 854bac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/file/OutputFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ IOutputStream::EWrappingStatus OutputFile::wrap( const CodedData& data, const si
112112

113113
av_free_packet( &packet );
114114

115-
double currentStreamDuration = getProgressDuration( 0 );
115+
double currentStreamDuration = getProgressDuration( streamId );
116116
if( currentStreamDuration < _previousProcessedStreamDuration )
117117
{
118118
// if the current stream is strictly shorter than the previous, wait for more data

0 commit comments

Comments
 (0)