[FFmpeg-cvslog] lavu/opt: check if class is NULL too
Paul B Mahol
git at videolan.org
Tue May 21 22:51:06 CEST 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue May 21 20:48:42 2013 +0000| [f98dbc7311a30a30802c71571ff5e3d049ea7556] | committer: Paul B Mahol
lavu/opt: check if class is NULL too
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f98dbc7311a30a30802c71571ff5e3d049ea7556
---
libavutil/opt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/opt.c b/libavutil/opt.c
index 1f0d6d0..4d06039 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -63,7 +63,7 @@ const AVOption *av_next_option(void *obj, const AVOption *last)
const AVOption *av_opt_next(void *obj, const AVOption *last)
{
AVClass *class = *(AVClass**)obj;
- if (!last && class->option && class->option[0].name)
+ if (!last && class && class->option && class->option[0].name)
return class->option;
if (last && last[1].name)
return ++last;
More information about the ffmpeg-cvslog
mailing list