proper stereo handling for multiple frames per packet

This commit is contained in:
Jean-Marc Valin 2011-07-05 17:06:43 -04:00
parent ef7095cdc3
commit 0d031d61a3

View file

@ -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;