media/libvorbis/bug722924.patch
author Joshua Cranmer <Pidgeot18@gmail.com>
Mon, 21 Oct 2013 13:08:00 -0500
changeset 165412 fb42a764f90bc91a628e472889e00b27b28b55ed
parent 89630 01b07f54ec5085368ee00b892eabbcf05a9b8f29
permissions -rw-r--r--
Bug 900526, part 2: Move backend.mk inclusion to config.mk instead of rules.mk, r=gps

diff --git a/media/libvorbis/lib/vorbis_codebook.c b/media/libvorbis/lib/vorbis_codebook.c
--- a/media/libvorbis/lib/vorbis_codebook.c
+++ b/media/libvorbis/lib/vorbis_codebook.c
@@ -442,17 +442,17 @@ long vorbis_book_decodev_set(codebook *b
       t     = book->valuelist+entry*book->dim;
       for (j=0;j<book->dim;)
         a[i++]=t[j++];
     }
   }else{
     int i,j;
 
     for(i=0;i<n;){
-      for (j=0;j<book->dim;)
+      for (j=0;j<book->dim;j++)
         a[i++]=0.f;
     }
   }
   return(0);
 }
 
 long vorbis_book_decodevv_add(codebook *book,float **a,long offset,int ch,
                               oggpack_buffer *b,int n){