Commit 7b382ab6 authored by Michael Niedermayer's avatar Michael Niedermayer

opt_find: fix segfault

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9f4d37f4
......@@ -45,7 +45,7 @@ static const AVOption *opt_find(void *obj, const char *name, const char *unit, i
AVCodec *c = NULL;
if (s->priv_data) {
if (s->codec->priv_class)
if (s->codec && s->codec->priv_class)
return av_opt_find(s->priv_data, name, unit, opt_flags, search_flags);
return NULL;
}
......
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