Commit a7211bbe authored by michael's avatar michael

Fix FF_OPT_TYPE_INT64 support of defaults.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16008 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 876909ae
......@@ -415,6 +415,11 @@ void av_opt_set_defaults2(void *s, int mask, int flags)
av_set_int(s, opt->name, val);
}
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: {
double val;
val = opt->default_val;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment