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:
d837233
)
shut gcc warning, also makes sense for NAN to be returned if the loop was never executed
author
Oded Shimon
<ods15@ods15.dyndns.org>
Sat, 28 Oct 2006 07:03:24 +0000
(07:03 +0000)
committer
Oded Shimon
<ods15@ods15.dyndns.org>
Sat, 28 Oct 2006 07:03:24 +0000
(07:03 +0000)
Originally committed as revision 6818 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/eval.c
patch
|
blob
|
history
diff --git
a/libavcodec/eval.c
b/libavcodec/eval.c
index
bbd6ae4
..
4b88d5a
100644
(file)
--- a/
libavcodec/eval.c
+++ b/
libavcodec/eval.c
@@
-156,7
+156,7
@@
static double eval_expr(Parser * p, AVEvalExpr * e) {
case e_gauss: { double d = eval_expr(p, e->param[0]); return exp(-d*d/2)/sqrt(2*M_PI); }
case e_ld: return e->value * p->var[clip(eval_expr(p, e->param[0]), 0, VARS-1)];
case e_while: {
- double d;
+ double d
= NAN
;
while(eval_expr(p, e->param[0]))
d=eval_expr(p, e->param[1]);
return d;