Bug 1731343 [wpt PR 30843] - Add README.md to wpt/webtransport, a=testonly
[gecko.git] / media / libtremor / bug1117571-r19420.patch
blob02de5e68ffdd9ca6a6a2bdabe9643e9e725a2f8b
1 diff -r 55f3224d7513 media/libtremor/lib/tremor_synthesis.c
2 --- a/media/libtremor/lib/tremor_synthesis.c Sat Jan 03 20:02:33 2015 -0800
3 +++ b/media/libtremor/lib/tremor_synthesis.c Sun Jan 04 11:17:29 2015 -0800
4 @@ -119,13 +119,13 @@ long vorbis_packet_blocksize(vorbis_info
5 while(v>1){
6 modebits++;
7 v>>=1;
10 /* read our mode and pre/post windowsize */
11 mode=oggpack_read(&opb,modebits);
13 - if(mode==-1)return(OV_EBADPACKET);
14 + if(mode==-1 || !ci->mode_param[mode])return(OV_EBADPACKET);
15 return(ci->blocksizes[ci->mode_param[mode]->blockflag]);