changeset 4086:9076b11ea35f libavcodec

minor simplification
author michael
date Fri, 27 Oct 2006 21:13:31 +0000
parents 16b88d6b3546
children d4cdb9f6e888
files eval.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/eval.c	Fri Oct 27 20:38:10 2006 +0000
+++ b/eval.c	Fri Oct 27 21:13:31 2006 +0000
@@ -302,12 +302,9 @@
     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;