From bf71fb54b56eda05695939b9625a219d2427956c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 13 Aug 2011 00:49:04 +0200 Subject: [PATCH] av_get_number: also search children, this is more sane than not doing so. Signed-off-by: Michael Niedermayer --- libavutil/opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- GitLab