Commit 978821d8 authored by Monty's avatar Monty

Catch one more omission in the vector length guarding

svn path=/trunk/vorbis/; revision=13155
parent 203f6512
...@@ -849,7 +849,7 @@ int res2_inverse(vorbis_block *vb,vorbis_look_residue *vl, ...@@ -849,7 +849,7 @@ int res2_inverse(vorbis_block *vb,vorbis_look_residue *vl,
int partitions_per_word=look->phrasebook->dim; int partitions_per_word=look->phrasebook->dim;
int max=(vb->pcmend*ch)>>1; int max=(vb->pcmend*ch)>>1;
int end=(info->end<max?info->end:max); int end=(info->end<max?info->end:max);
int n=info->end-info->begin; int n=end-info->begin;
if(n>0){ if(n>0){
int partvals=n/samples_per_partition; int partvals=n/samples_per_partition;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment