media/libtremor/bug1117571-r19420.patch
author Andrew Halberstadt <ahalberstadt@mozilla.com>
Thu, 05 May 2016 17:21:12 -0400
changeset 364414 654d411978a76776ee96e616c5f3369a026e0be4
parent 234991 5c86509a11bc8868f0967c451c216b8d0ce2e1c2
permissions -rw-r--r--
Bug 1270506 - [mozlint] Add python flake8 linter, r?smacleod For now, only the following two directories will be linted: python/mozlint tools/lint New directories can be added by adding them to the 'include' directive in tools/lint/flake8.lint. They all default to the configuration specified in topsrcdir/.flake8. Subdirectories can override this configuration by creating their own .flake8 file. MozReview-Commit-ID: Eag48Lnkp3l

diff -r 55f3224d7513 media/libtremor/lib/tremor_synthesis.c
--- a/media/libtremor/lib/tremor_synthesis.c	Sat Jan 03 20:02:33 2015 -0800
+++ b/media/libtremor/lib/tremor_synthesis.c	Sun Jan 04 11:17:29 2015 -0800
@@ -119,13 +119,13 @@ 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]);
 }