[FFmpeg-devel] [PATCH] Add missing case for FF_OPT_TYPE_DOUBLE in av_opt_set_defaults2().

Stefano Sabatini stefano.sabatini-lala
Wed Sep 29 20:36:45 CEST 2010


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

diff --git a/libavutil/opt.c b/libavutil/opt.c
index df0aa42..979bb3d 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -426,7 +426,8 @@ void av_opt_set_defaults2(void *s, int mask, int flags)
                     av_log(s, AV_LOG_DEBUG, "loss of precision in default of %s\n", opt->name);
                 av_set_int(s, opt->name, opt->default_val);
             break;
-            case FF_OPT_TYPE_FLOAT: {
+            case FF_OPT_TYPE_FLOAT:
+            case FF_OPT_TYPE_DOUBLE: {
                 double val;
                 val = opt->default_val;
                 av_set_double(s, opt->name, val);
-- 
1.7.1




More information about the ffmpeg-devel mailing list