fix stereo

This commit is contained in:
Seven Du authored and Michael Jerris committed 2015-05-28 12:47:12 -05:00
1 parent bbfd9f7ef3
commit adbb197414
1 file changed
+1 -1
+1 -1
View File
@@ -271,7 +271,7 @@ static switch_status_t switch_vorbis_encode(switch_codec_t *codec,
/* uninterleave samples */
for (i = 0; i < samples; i++) {
for (j = 0; j < channels; j++) {
buffer[j][i] = *(data + i) / 32768.f;
buffer[j][i] = *(data + channels * i + j) / 32768.f;
}
}