From: Michael Niedermayer Date: Fri, 12 Aug 2011 22:49:04 +0000 (+0200) Subject: av_get_number: also search children, this is more sane than not doing so. X-Git-Tag: rel20110916_inqubus2.b.0~4^2~390 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=bf71fb54b56eda05695939b9625a219d2427956c;p=coroid%2Fffmpeg_saccubus.git av_get_number: also search children, this is more sane than not doing so. Signed-off-by: Michael Niedermayer --- diff --git a/libavutil/opt.c b/libavutil/opt.c index 609167ef6..97ec07159 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;