aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/eval.c
diff options
context:
space:
mode:
authorOded Shimon <ods15@ods15.dyndns.org>2006-10-28 07:03:24 +0000
committerOded Shimon <ods15@ods15.dyndns.org>2006-10-28 07:03:24 +0000
commit63a547eabc3ec874ca0f732d141eb2b2e95224a8 (patch)
treec62c0c756fbaba150c4373dc58810791f22615eb /libavcodec/eval.c
parentd83723305e15f0d483638520b0c1402492f459a9 (diff)
downloadffmpeg-63a547eabc3ec874ca0f732d141eb2b2e95224a8.tar.gz
shut gcc warning, also makes sense for NAN to be returned if the loop was never executed
Originally committed as revision 6818 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/eval.c')
-rw-r--r--libavcodec/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/eval.c b/libavcodec/eval.c
index bbd6ae4ca5..4b88d5acf0 100644
--- 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;