aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/opt.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-09-29 21:42:03 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-09-29 21:42:03 +0000
commit584b8edb999879deddb0b0ea4184b8c978436724 (patch)
treebaf8a806b84a361e1c76d9fed4f945a4cc866e4b /libavutil/opt.c
parent826481ea912f985dd5521e14baf0ed3e9a2bc0e4 (diff)
downloadffmpeg-584b8edb999879deddb0b0ea4184b8c978436724.tar.gz
Add missing case for FF_OPT_TYPE_DOUBLE in av_opt_set_defaults2().
Originally committed as revision 25265 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/opt.c')
-rw-r--r--libavutil/opt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c
index df0aa421b0..29e9fd352c 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -426,6 +426,7 @@ 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_DOUBLE:
case FF_OPT_TYPE_FLOAT: {
double val;
val = opt->default_val;