diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-05-21 20:48:42 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-05-21 20:50:49 +0000 |
commit | f98dbc7311a30a30802c71571ff5e3d049ea7556 (patch) | |
tree | e9d4d5dfc8122cc7555db84dc104473012e53a36 /libavutil/opt.c | |
parent | 39dc1bc90fa79ede19f5688a84d938f869924e51 (diff) | |
download | ffmpeg-f98dbc7311a30a30802c71571ff5e3d049ea7556.tar.gz |
lavu/opt: check if class is NULL too
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavutil/opt.c')
-rw-r--r-- | libavutil/opt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c index 1f0d6d0d65..4d06039273 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; |