From 577eab6b62bdf5b67dd2ed21ef53c8d09abfa6b7 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 27 Oct 2006 21:13:31 +0000 Subject: [PATCH] minor simplification Originally committed as revision 6810 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/eval.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libavcodec/eval.c b/libavcodec/eval.c index db0b71fd9b..2d2be2b533 100644 --- a/libavcodec/eval.c +++ b/libavcodec/eval.c @@ -302,12 +302,9 @@ static AVEvalExpr * parse_factor(Parser *p){ int sign, sign2; AVEvalExpr * e = parse_pow(p, &sign); while(p->s[0]=='^'){ - AVEvalExpr * tmp; - p->s++; - tmp= new_eval_expr(e_pow, 1, e, parse_pow(p, &sign2)); - if (tmp->param[1]) tmp->param[1]->value *= (sign2|1); - e = tmp; + e= new_eval_expr(e_pow, 1, e, parse_pow(p, &sign2)); + if (e->param[1]) e->param[1]->value *= (sign2|1); } if (e) e->value *= (sign|1); return e;