On Sun, Nov 23, 2014 at 12:58:06AM +0100, Lukasz Marek wrote: > It indirectly also fixes av_opt_free for NULL objs. > > Signed-off-by: Lukasz Marek <lukasz.m.lu...@gmail.com> > --- > libavutil/opt.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/libavutil/opt.c b/libavutil/opt.c > index 47b1f0c..85330c9 100644 > --- a/libavutil/opt.c > +++ b/libavutil/opt.c > @@ -50,6 +50,8 @@ const AVOption *av_next_option(void *obj, const AVOption > *last) > > const AVOption *av_opt_next(void *obj, const AVOption *last) > { > + if (!obj) > + return NULL; > AVClass *class = *(AVClass**)obj;
AVClass *class must be declared above > if (!last && class && class->option && class->option[0].name) > return class->option; > -- > 1.9.1 > -- Clément B.
pgpMKwpOMr5Qc.pgp
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel