summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-01 12:30:30 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-01 12:30:30 +0200
commitcca229e75a55a5755abf7dc4547d9dce42e2edc8 (patch)
tree945e9afd45170ef643b2a948e42743f52bf3be65 /libavutil
parentfcccb4c11dcfcbdbb4b0d6eed5ed276d946c7d13 (diff)
parentc7e921a54ffe7feb9f695c82f0a0764ab8d0f62b (diff)
Merge commit 'c7e921a54ffe7feb9f695c82f0a0764ab8d0f62b'
* commit 'c7e921a54ffe7feb9f695c82f0a0764ab8d0f62b': avopt: Check whether the object actually has got an AVClass Conflicts: libavutil/opt.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/opt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c
index afa0c0ebc0..87ac570e5a 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -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;