summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-08-13 00:49:04 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-08-13 01:06:15 +0200
commitbf71fb54b56eda05695939b9625a219d2427956c (patch)
treeb63aff95efc0e4ab77b569c70d4bedc678bead45 /libavutil
parent7b382ab6b03adbf9642d86fd8a8a54b61b67d836 (diff)
av_get_number: also search children, this is more sane than not doing so.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/opt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c
index 609167ef62..97ec07159d 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -262,7 +262,7 @@ const char *av_get_string(void *obj, const char *name, const AVOption **o_out, c
static int av_get_number(void *obj, const char *name, const AVOption **o_out, double *num, int *den, int64_t *intnum)
{
- const AVOption *o = av_opt_find(obj, name, NULL, 0, 0);
+ const AVOption *o = av_opt_find(obj, name, NULL, 0, AV_OPT_SEARCH_CHILDREN);
void *dst;
if (!o || (o->offset<=0 && o->type != FF_OPT_TYPE_CONST))
goto error;