[xiph-commits] r17474 - trunk/vorbis/lib
gmaxwell at svn.xiph.org
gmaxwell at svn.xiph.org
Wed Sep 29 20:41:41 PDT 2010
Author: gmaxwell
Date: 2010-09-29 20:41:41 -0700 (Wed, 29 Sep 2010)
New Revision: 17474
Modified:
trunk/vorbis/lib/synthesis.c
Log:
Make vorbis_synthesis_trackonly error handling match vorbis_synthesis per Mozilla bug487519.patch
Modified: trunk/vorbis/lib/synthesis.c
===================================================================
--- trunk/vorbis/lib/synthesis.c 2010-09-28 18:52:07 UTC (rev 17473)
+++ trunk/vorbis/lib/synthesis.c 2010-09-30 03:41:41 UTC (rev 17474)
@@ -114,6 +114,10 @@
if(mode==-1)return(OV_EBADPACKET);
vb->mode=mode;
+ if(!ci->mode_param[mode]){
+ return(OV_EBADPACKET);
+ }
+
vb->W=ci->mode_param[mode]->blockflag;
if(vb->W){
vb->lW=oggpack_read(opb,1);
More information about the commits
mailing list