aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-08-13 00:54:07 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-08-13 01:06:16 +0200
commitc4fd1d34ca81a53e6bdecd0a7a7110d1c4891a3b (patch)
treec29b69c5b9f65d1c33a506cdd9c2287c45e542a0
parentbf71fb54b56eda05695939b9625a219d2427956c (diff)
downloadffmpeg-c4fd1d34ca81a53e6bdecd0a7a7110d1c4891a3b.tar.gz
av_get_string: search children too.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavutil/opt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c
index 97ec07159d..e56cdc65e7 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;