Commit d5e1244c authored by Michael Niedermayer's avatar Michael Niedermayer

opt: Fix *av_opt_find2(NULL)

Fixes Ticket650
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 04bb26e3
...@@ -753,9 +753,14 @@ const AVOption *av_opt_find(void *obj, const char *name, const char *unit, ...@@ -753,9 +753,14 @@ const AVOption *av_opt_find(void *obj, const char *name, const char *unit,
const AVOption *av_opt_find2(void *obj, const char *name, const char *unit, const AVOption *av_opt_find2(void *obj, const char *name, const char *unit,
int opt_flags, int search_flags, void **target_obj) int opt_flags, int search_flags, void **target_obj)
{ {
const AVClass *c = *(AVClass**)obj; const AVClass *c;
const AVOption *o = NULL; const AVOption *o = NULL;
if(!obj)
return NULL;
c= *(AVClass**)obj;
if (search_flags & AV_OPT_SEARCH_CHILDREN) { if (search_flags & AV_OPT_SEARCH_CHILDREN) {
if (search_flags & AV_OPT_SEARCH_FAKE_OBJ) { if (search_flags & AV_OPT_SEARCH_FAKE_OBJ) {
const AVClass *child = NULL; const AVClass *child = 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