# HG changeset patch # User bcoudurier # Date 1147023000 0 # Node ID 539af98972f43664ba80d3624ed4b3413c4cb0f2 # Parent f1bcb9ae510bb189a93f5bdeba77f1eebe9864d2 vorbis 5:1 decoding fix, fix mi2_vorbis51.mp4, patch by Denes Balatoni diff -r f1bcb9ae510b -r 539af98972f4 vorbis.c --- 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; } }