Skip to content

Commit e21acb7

Browse files
author
Clement Champetier
committed
InputStreamAudio: suppress tmp variable
1 parent 36de2c6 commit e21acb7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/AvTranscoder/InputStreamAudio.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,9 @@ bool InputStreamAudio::readNextFrame( AudioFrame& audioFrameBuffer )
140140
if( audioFrameBuffer.getSize() != decodedSize )
141141
audioFrameBuffer.getBuffer().resize( decodedSize, 0 );
142142

143-
unsigned char* dest = audioFrameBuffer.getPtr();
144-
int nb_channels = m_codecContext->channels;
145-
av_samples_copy(&dest, (uint8_t* const* )m_frame->data, 0,
146-
0, m_frame->nb_samples, nb_channels,
143+
unsigned char* dst = audioFrameBuffer.getPtr();
144+
av_samples_copy(&dst, (uint8_t* const* )m_frame->data, 0,
145+
0, m_frame->nb_samples, m_codecContext->channels,
147146
m_codecContext->sample_fmt);
148147
}
149148

0 commit comments

Comments
 (0)