Fix FF_OPT_TYPE_INT64 support of defaults.
Originally committed as revision 16008 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3d5e1bfb20
commit
36d5b17514
@ -415,6 +415,11 @@ void av_opt_set_defaults2(void *s, int mask, int flags)
|
|||||||
av_set_int(s, opt->name, val);
|
av_set_int(s, opt->name, val);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case FF_OPT_TYPE_INT64:
|
||||||
|
if((double)(opt->default_val+0.6) == opt->default_val)
|
||||||
|
av_log(s, AV_LOG_DEBUG, "loss of precission 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: {
|
||||||
double val;
|
double val;
|
||||||
val = opt->default_val;
|
val = opt->default_val;
|
||||||
|
Loading…
Reference in New Issue
Block a user