Skip to content

Commit 838f03b

Browse files
author
Valentin Noel
committed
AvInputAudio: fix audio demux offset
1 parent 0ce93c3 commit 838f03b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/essenceStream/AvInputAudio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ bool AvInputAudio::readNextFrame( Frame& frameBuffer, const size_t subStreamInde
160160
unsigned char* dst = audioBuffer.getPtr();
161161

162162
// offset
163-
src += ( nbSubStreams - 1 - subStreamIndex ) * bytePerSample;
163+
src += subStreamIndex * bytePerSample;
164164

165165
for( int sample = 0; sample < _frame->nb_samples; ++sample )
166166
{

0 commit comments

Comments
 (0)