OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d5e1bf
)
Fix FF_OPT_TYPE_INT64 support of defaults.
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 5 Dec 2008 14:55:43 +0000
(14:55 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 5 Dec 2008 14:55:43 +0000
(14:55 +0000)
Originally committed as revision 16008 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/opt.c
patch
|
blob
|
history
diff --git
a/libavcodec/opt.c
b/libavcodec/opt.c
index
acf94ba
..
bc2f3bd
100644
(file)
--- a/
libavcodec/opt.c
+++ b/
libavcodec/opt.c
@@
-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;