Merge commit 'c7e921a54f'
* commit 'c7e921a54f':
avopt: Check whether the object actually has got an AVClass
Conflicts:
libavutil/opt.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
cca229e75a
1 changed files with 3 additions and 0 deletions
|
|
@ -1294,6 +1294,9 @@ const AVOption *av_opt_find2(void *obj, const char *name, const char *unit,
|
|||
|
||||
c= *(AVClass**)obj;
|
||||
|
||||
if (!c)
|
||||
return NULL;
|
||||
|
||||
if (search_flags & AV_OPT_SEARCH_CHILDREN) {
|
||||
if (search_flags & AV_OPT_SEARCH_FAKE_OBJ) {
|
||||
const AVClass *child = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue