зеркало из https://github.com/mozilla/pjs.git
Bug 722924 - Fix handling of Vorbis floor0 codebook with no used entries, r=kinetik
This commit is contained in:
Родитель
e1d872d1d4
Коммит
12b9b1a666
|
@ -0,0 +1,22 @@
|
|||
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){
|
|
@ -447,7 +447,7 @@ long vorbis_book_decodev_set(codebook *book,float *a,oggpack_buffer *b,int n){
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,3 +48,4 @@ cp $1/README ./README
|
|||
cp $1/AUTHORS ./AUTHORS
|
||||
patch -p3 < ./alloca.diff
|
||||
patch -p3 < ./bug719612.patch
|
||||
patch -p3 < ./bug722924.patch
|
||||
|
|
Загрузка…
Ссылка в новой задаче