From c563d6fe5a511dd4950497206f7f11be45f3f78d Mon Sep 17 00:00:00 2001 From: Gregory Maxwell Date: Thu, 30 Sep 2010 03:41:41 +0000 Subject: [PATCH] Make vorbis_synthesis_trackonly error handling match vorbis_synthesis per Mozilla bug487519.patch svn path=/trunk/vorbis/; revision=17474 --- lib/synthesis.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.7.4