On Fri, Oct 21, 2011 at 12:01:43PM +0100, Måns Rullgård wrote:
> Jan E <[email protected]> writes:
> 
> > From: Michael Niedermayer <[email protected]>
> >
> > Signed-off-by: Michael Niedermayer <[email protected]>
> > ---
> >  libavcodec/aacsbr.c |    2 ++
> >  1 files changed, 2 insertions(+), 0 deletions(-)
> >
> > diff --git a/libavcodec/aacsbr.c b/libavcodec/aacsbr.c
> > index 2910395..60fa701 100644
> > --- a/libavcodec/aacsbr.c
> > +++ b/libavcodec/aacsbr.c
> > @@ -130,6 +130,8 @@ av_cold void ff_aac_sbr_init(void)
> >  av_cold void ff_aac_sbr_ctx_init(AACContext *ac, SpectralBandReplication 
> > *sbr)
> >  {
> >      float mdct_scale;
> > +    if(sbr->mdct.mdct_bits)
> > +        return;
> >      sbr->kx[0] = sbr->kx[1] = 32; //Typo in spec, kx' inits to 32
> >      sbr->data[0].e_a[1] = sbr->data[1].e_a[1] = -1;
> >      sbr->data[0].synthesis_filterbank_samples_offset = 
> > SBR_SYNTHESIS_BUF_SIZE - (1280 - 128);
> > -- 
> 
> This looks unnecessary and wrong.

I suspect the latm decoder is responsisble for this and it should be
fixed there. I'll do it.

Janne
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to