Commit d0b77e5e authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Corrected typo in Media::addAudioFrame (Media.cpp)

parent 1600fb1a
......@@ -157,11 +157,11 @@ void Media::addAudioFrame( void* datas, unsigned char* buffer, si
for (int i = 0, u = 0; u < m_audioData.nbSample; i += 4, u++)
{
int value = buffer[i];
value << 8;
value <<= 8;
value += buffer[i + 1];
value << 8;
value <<= 8;
value += buffer[i + 2];
value << 8;
value <<= 8;
value += buffer[i + 3];
frame[u] = value;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment