Bug 1934086 - Update libvorbis to 315da9c. r=media-playback-reviewers,alwu

Depends on D237200

Differential Revision: https://phabricator.services.mozilla.com/D237201
This commit is contained in:
Paul Adenot
2025-02-10 08:58:19 +00:00
parent cf1b1bf7c7
commit 2ae03e7fd3
3 changed files with 8 additions and 4 deletions

View File

@@ -339,6 +339,10 @@ void _vp_psy_init(vorbis_look_psy *p,vorbis_info_psy *vi,
if(halfoc<0)halfoc=0; if(halfoc<0)halfoc=0;
if(halfoc>=P_BANDS-1)halfoc=P_BANDS-1; if(halfoc>=P_BANDS-1)halfoc=P_BANDS-1;
inthalfoc=(int)halfoc; inthalfoc=(int)halfoc;
/*If we hit the P_BANDS-1 clamp above, inthalfoc+1 will be out of bounds,
even though it will have an interpolation weight of 0.
Shift the interval so we don't read past the end of the array.*/
if(inthalfoc>=P_BANDS-2)inthalfoc=P_BANDS-2;
del=halfoc-inthalfoc; del=halfoc-inthalfoc;
for(j=0;j<P_NOISECURVES;j++) for(j=0;j<P_NOISECURVES;j++)

View File

@@ -422,7 +422,7 @@ int vorbis_book_init_decode(codebook *c,const static_codebook *s){
long lo=0,hi=0; long lo=0,hi=0;
for(i=0;i<tabn;i++){ for(i=0;i<tabn;i++){
ogg_uint32_t word=i<<(32-c->dec_firsttablen); ogg_uint32_t word=((ogg_uint32_t)i<<(32-c->dec_firsttablen));
if(c->dec_firsttable[bitreverse(word)]==0){ if(c->dec_firsttable[bitreverse(word)]==0){
while((lo+1)<n && c->codelist[lo+1]<=word)lo++; while((lo+1)<n && c->codelist[lo+1]<=word)lo++;
while( hi<n && word>=(c->codelist[hi]&mask))hi++; while( hi<n && word>=(c->codelist[hi]&mask))hi++;
@@ -581,7 +581,7 @@ void run_test(static_codebook *b,float *comp){
exit(1); exit(1);
} }
} }
free(out); _ogg_free(out);
} }
int main(){ int main(){

View File

@@ -10,8 +10,8 @@ origin:
url: https://xiph.org/vorbis/ url: https://xiph.org/vorbis/
release: v1.3.7 (2020-07-03T19:38:28-07:00). release: 315da9cc9d30484c802b2e2ea150df39e060e2b9 (2025-02-05T08:11:19.000-08:00).
revision: v1.3.7 revision: 315da9cc9d30484c802b2e2ea150df39e060e2b9
license: BSD-3-Clause license: BSD-3-Clause