[FFmpeg-cvslog] av_get_number: also search children, this is more sane than not doing so.

Michael Niedermayer git at videolan.org
Sat Aug 13 01:15:56 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Aug 13 00:49:04 2011 +0200| [bf71fb54b56eda05695939b9625a219d2427956c] | committer: Michael Niedermayer

av_get_number: also search children, this is more sane than not doing so.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bf71fb54b56eda05695939b9625a219d2427956c
---

 libavutil/opt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavutil/opt.c b/libavutil/opt.c
index 609167e..97ec071 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;



More information about the ffmpeg-cvslog mailing list