gecko/media/libvorbis/bug1117571-r19419.patch

23 lines
804 B
Diff

diff -r 55f3224d7513 media/libvorbis/lib/vorbis_synthesis.c
--- a/media/libvorbis/lib/vorbis_synthesis.c Sat Jan 03 20:02:33 2015 -0800
+++ b/media/libvorbis/lib/vorbis_synthesis.c Sun Jan 04 11:17:02 2015 -0800
@@ -159,17 +159,17 @@ long vorbis_packet_blocksize(vorbis_info
while(v>1){
modebits++;
v>>=1;
}
/* read our mode and pre/post windowsize */
mode=oggpack_read(&opb,modebits);
}
- if(mode==-1)return(OV_EBADPACKET);
+ if(mode==-1 || !ci->mode_param[mode])return(OV_EBADPACKET);
return(ci->blocksizes[ci->mode_param[mode]->blockflag]);
}
int vorbis_synthesis_halfrate(vorbis_info *vi,int flag){
/* set / clear half-sample-rate mode */
codec_setup_info *ci=vi->codec_setup;
/* right now, our MDCT can't handle < 64 sample windows. */