[speex-dev] Frozen upper spectrum in WB VBR CNG

Tom Grandgent tgrand at canvaslink.com
Sat May 3 23:30:35 PDT 2003



Great, thanks!  That patch solved it.  VBR without DTX seems to work 
perfectly now.  If I enable DTX, there's still a little bit of buzz 
but it doesn't seem to last very long when it happens.

I appreciate the quick fix!

Tom

Jean-Marc Valin (jean-marc.valin at hermes.usherb.ca) wrote:
> 
> Yep, you found a bug and here's the patch. It should solve your problem
> (using VBR without DTX), but there many still be some tuning do to on
> the DTX.
> 
> 	Jean-Marc
> 
> 
> diff -u -r1.118 sb_celp.c
> --- sb_celp.c   18 Mar 2003 06:13:30 -0000      1.118
> +++ sb_celp.c   4 May 2003 04:58:16 -0000
> @@ -351,6 +351,8 @@
>           int modeid;
>           modeid = mode->nb_modes-1;
>           st->relative_quality+=1.0*(ratio+2);
> +        if (st->relative_quality<-1)
> +            st->relative_quality=-1;
>           while (modeid)
>           {
>              int v1;
> @@ -361,7 +363,7 @@
>              else
>                 thresh = (st->vbr_quality-v1)   *
> mode->vbr_thresh[modeid][v1+1] +
>                          (1+v1-st->vbr_quality) *
> mode->vbr_thresh[modeid][v1];
> -            if (st->relative_quality > thresh)
> +            if (st->relative_quality >= thresh)
>                 break;
>              modeid--;
>           }

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'speex-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Speex-dev mailing list