On 2012-01-06 12:29:50 +0100, Diego Biurrun wrote:
> On Fri, Jan 06, 2012 at 01:14:21AM +0100, Janne Grunau wrote:
> > 
> > --- a/libavcodec/aacdec.c
> > +++ b/libavcodec/aacdec.c
> > @@ -2244,6 +2244,22 @@ static int aac_decode_frame_int(AVCodecContext 
> > *avctx, void *data,
> >  
> > +static void aac_decode_reinit(AACContext *ac)
> > +{
> > +    int i, type;
> > +
> > +    for (i = 0; i < MAX_ELEM_ID; i++) {
> > +        for (type = 0; type < 4; type++) {
> > +            if (ac->che[type][i])
> > +                ff_aac_sbr_ctx_close(&ac->che[type][i]->sbr);
> > +            av_freep(&ac->che[type][i]);
> > +        }
> > +    }
> > +
> > +    ac->m4ac = (MPEG4AudioConfig) { 0 };
> > +    ac->m4ac.sbr = ac->m4ac.ps = -1;
> 
> A beer at FOSDEM says this cast is unnecessary.

You've won. The whole line is unnecessary and already removed but I
added the cast only after gcc-4.5.3 complained:

"error: expected expression before ‘{’ token"

Janne

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

Reply via email to