Commit 87ababd7 authored by Michael Niedermayer's avatar Michael Niedermayer

avopt: fix segfault

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 041dbd3c
......@@ -45,7 +45,7 @@ const AVOption *av_find_opt(void *v, const char *name, const char *unit, int mas
const AVOption *av_next_option(void *obj, const AVOption *last)
{
if (last && last[1].name) return ++last;
else if (last) return NULL;
else if (last || !(*(AVClass**)obj)->option->name) return NULL;
else return (*(AVClass**)obj)->option;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment