diff options
author | Måns Rullgård <mans@mansr.com> | 2005-05-19 11:41:41 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2005-05-19 11:41:41 +0000 |
commit | d381c5054a7746ea4bfbde33d91f65302a8f285d (patch) | |
tree | 261316774f152fb4164906d20dd244adbc2ec8b6 /libavcodec/vorbis.c | |
parent | 7beddb12d48ac229a4427bb1b7c2a03d831200fb (diff) | |
download | ffmpeg-d381c5054a7746ea4bfbde33d91f65302a8f285d.tar.gz |
fix decoding of multi-channel vorbis streams
Originally committed as revision 4280 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vorbis.c')
-rw-r--r-- | libavcodec/vorbis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vorbis.c b/libavcodec/vorbis.c index fa60b13bbc..9d6d55c004 100644 --- a/libavcodec/vorbis.c +++ b/libavcodec/vorbis.c @@ -1029,7 +1029,7 @@ static int vorbis_residue_decode(vorbis_context *vc, vorbis_residue *vr, uint_fa 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 @@ static int vorbis_residue_decode(vorbis_context *vc, vorbis_residue *vr, uint_fa return 1; } } - j_times_ptns_to_read+=ptns_to_read; } + j_times_ptns_to_read+=ptns_to_read; } ++partition_count; voffset+=vr->partition_size; |