# HG changeset patch # User mru # Date 1116502901 0 # Node ID e364461618769ea923f7e38b603bc4b11c534c32 # Parent b008c78467e6c15b52864ab9592daeda9d40402b fix decoding of multi-channel vorbis streams diff -r b008c78467e6 -r e36446161876 vorbis.c --- a/vorbis.c Thu May 19 10:48:36 2005 +0000 +++ b/vorbis.c Thu May 19 11:41:41 2005 +0000 @@ -1029,7 +1029,7 @@ uint_fast8_t c_p_c=vc->codebooks[vr->classbook].dimensions; uint_fast16_t n_to_read=vr->end-vr->begin; uint_fast16_t ptns_to_read=n_to_read/vr->partition_size; - uint_fast8_t classifs[ptns_to_read]; + uint_fast8_t classifs[ptns_to_read*vc->audio_channels]; uint_fast8_t pass; uint_fast8_t ch_used; uint_fast8_t i,j,l; @@ -1139,8 +1139,8 @@ return 1; } } - j_times_ptns_to_read+=ptns_to_read; } + j_times_ptns_to_read+=ptns_to_read; } ++partition_count; voffset+=vr->partition_size;