Commit 0d031d61 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

proper stereo handling for multiple frames per packet

parent ef7095cd
......@@ -524,7 +524,7 @@ int opus_decode(OpusDecoder *st, const unsigned char *data,
if (ret<0)
return ret;
data += size[i];
pcm += ret;
pcm += ret*st->channels;
nb_samples += ret;
return nb_samples;
Supports Markdown
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