From: Gregory Maxwell Date: Thu, 30 Sep 2010 03:41:41 +0000 (+0000) Subject: Make vorbis_synthesis_trackonly error handling match vorbis_synthesis per Mozilla... X-Git-Tag: v1.3.3~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c563d6fe5a511dd4950497206f7f11be45f3f78d;p=platform%2Fupstream%2Flibvorbis.git Make vorbis_synthesis_trackonly error handling match vorbis_synthesis per Mozilla bug487519.patch svn path=/trunk/vorbis/; revision=17474 --- diff --git a/lib/synthesis.c b/lib/synthesis.c index bcf99c5..6ed554d 100644 --- a/lib/synthesis.c +++ b/lib/synthesis.c @@ -114,6 +114,10 @@ int vorbis_synthesis_trackonly(vorbis_block *vb,ogg_packet *op){ 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);