Hi, On Wed, Jun 8, 2011 at 1:46 AM, Anton Khirnov <[email protected]> wrote: > This might happen if there was an error before priv_data was allocated > and result in segfault. > --- > libavformat/utils.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/libavformat/utils.c b/libavformat/utils.c > index 8ab59e1..c198af0 100644 > --- a/libavformat/utils.c > +++ b/libavformat/utils.c > @@ -2551,7 +2551,7 @@ void avformat_free_context(AVFormatContext *s) > AVStream *st; > > av_opt_free(s); > - if (s->iformat && s->iformat->priv_class) > + if (s->iformat && s->iformat->priv_class && s->priv_data) > av_opt_free(s->priv_data);
OK. Ronald _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
