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
This commit is contained in:
Stefano Sabatini 2010-09-29 21:42:03 +00:00
parent 826481ea91
commit 584b8edb99
1 changed files with 1 additions and 0 deletions

View File

@ -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_log(s, AV_LOG_DEBUG, "loss of precision in default of %s\n", opt->name);
av_set_int(s, opt->name, opt->default_val); av_set_int(s, opt->name, opt->default_val);
break; break;
case FF_OPT_TYPE_DOUBLE:
case FF_OPT_TYPE_FLOAT: { case FF_OPT_TYPE_FLOAT: {
double val; double val;
val = opt->default_val; val = opt->default_val;