X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavutil%2Fopt.c;h=e56cdc65e71bb09b07ecc14383b07b182ed2a79f;hb=031ba466331c091bd68ce757b8ae11497306b8b7;hp=609167ef62f6f9e278e39c7438630d1fdfbd8840;hpb=3c3daf4d198306295e3342631f19422bdc258dbb;p=ffmpeg diff --git a/libavutil/opt.c b/libavutil/opt.c index 609167ef62f..e56cdc65e71 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -229,7 +229,7 @@ const AVOption *av_set_int(void *obj, const char *name, int64_t n) */ const char *av_get_string(void *obj, const char *name, const AVOption **o_out, char *buf, int buf_len) { - 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; uint8_t *bin; int len, i; @@ -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;