Skip to content
Snippets Groups Projects
Commit 0d031d61 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

proper stereo handling for multiple frames per packet

parent ef7095cd
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment