ref: 0d031d61a3e155b9a917585f82621f432649787b
parent: ef7095cdc300247c5193c35d6c95e9ea58847e79
author: Jean-Marc Valin <[email protected]>
date: Tue Jul 5 13:06:43 EDT 2011
proper stereo handling for multiple frames per packet
--- a/src/opus_decoder.c
+++ b/src/opus_decoder.c
@@ -524,7 +524,7 @@
if (ret<0)
return ret;
data += size[i];
- pcm += ret;
+ pcm += ret*st->channels;
nb_samples += ret;
}
return nb_samples;