Quoting Luca Barbato (2014-10-15 02:35:55) > Work as the other free()-like functions. > > Bug-Id: CID 1087081 > CC: [email protected] > --- > libavformat/utils.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/libavformat/utils.c b/libavformat/utils.c > index ffad92f..61a0084 100644 > --- a/libavformat/utils.c > +++ b/libavformat/utils.c > @@ -2432,6 +2432,9 @@ void avformat_free_context(AVFormatContext *s) > int i, j; > AVStream *st; > > + if (!s) > + return; > + > av_opt_free(s); > if (s->iformat && s->iformat->priv_class && s->priv_data) > av_opt_free(s->priv_data); > -- > 2.1.0 >
LGTM -- Anton Khirnov _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
