[FFmpeg-devel] [PATCH]Check for OOM in TTA decoder

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Apr 28 00:12:55 CEST 2011


Nicolas George <nicolas.george <at> normalesup.org> writes:

> > -        if (!s->ch_ctx)
> > +        if (!s->decode_buffer || !s->ch_ctx)
> >              return AVERROR(ENOMEM);
> 
> Doesn't that make a memleak if one of the malloc succeeds but the other
> fails?

Hopefully fixed correctly.

Could somebody comment on the decoder patches?

Thank you, Carl Eugen



More information about the ffmpeg-devel mailing list