fix stereo

This commit is contained in:
Seven Du 2015-03-14 17:00:09 +08:00 committed by Michael Jerris
parent bbfd9f7ef3
commit adbb197414
1 changed files with 1 additions and 1 deletions

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