mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
826481ea91
commit
584b8edb99
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue