Mercurial > libavcodec.hg
changeset 3294:539af98972f4 libavcodec
vorbis 5:1 decoding fix, fix mi2_vorbis51.mp4, patch by Denes Balatoni <dbalatoni at programozo dot hu>
author | bcoudurier |
---|---|
date | Sun, 07 May 2006 17:30:00 +0000 |
parents | f1bcb9ae510b |
children | 8c9825dbea20 |
files | vorbis.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/vorbis.c Sun May 07 11:48:07 2006 +0000 +++ b/vorbis.c Sun May 07 17:30:00 2006 +0000 @@ -1357,7 +1357,9 @@ uint_fast32_t temp2; temp2=(((uint_fast64_t)temp) * inverse[vr->classifications])>>32; - classifs[j_times_ptns_to_read+partition_count+c_p_c-1-i]=temp-temp2*vr->classifications; + if (partition_count+c_p_c-1-i < ptns_to_read) { + classifs[j_times_ptns_to_read+partition_count+c_p_c-1-i]=temp-temp2*vr->classifications; + } temp=temp2; } }