[FFmpeg-devel] [PATCH]Fix memleak if decoder init fails

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Mar 7 23:46:03 CET 2013


Michael Niedermayer <michaelni <at> gmx.at> writes:

> > +                ost = output_streams[i];
> > +                avcodec_close(ost->st->codec);
> > +            }
> >              goto dump_format;
> > +        }
> >  
> 
> can this affect dump_format ? 
> that is does it access anything that might be freed here ?

Afaict, dump_format currently does neither use 
output_streams->st nor output_streams->st->codec.

Carl Eugen



More information about the ffmpeg-devel mailing list