[Ffmpeg-cvslog] r6818 - trunk/libavcodec/eval.c
ods15
subversion
Sat Oct 28 09:03:25 CEST 2006
Author: ods15
Date: Sat Oct 28 09:03:24 2006
New Revision: 6818
Modified:
trunk/libavcodec/eval.c
Log:
shut gcc warning, also makes sense for NAN to be returned if the loop was never executed
Modified: trunk/libavcodec/eval.c
==============================================================================
--- trunk/libavcodec/eval.c (original)
+++ trunk/libavcodec/eval.c Sat Oct 28 09:03:24 2006
@@ -156,7 +156,7 @@
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;
More information about the ffmpeg-cvslog
mailing list