Commit ce759eb1 authored by michael's avatar michael

minor simplification


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6810 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e3299a51
...@@ -302,12 +302,9 @@ static AVEvalExpr * parse_factor(Parser *p){ ...@@ -302,12 +302,9 @@ static AVEvalExpr * parse_factor(Parser *p){
int sign, sign2; int sign, sign2;
AVEvalExpr * e = parse_pow(p, &sign); AVEvalExpr * e = parse_pow(p, &sign);
while(p->s[0]=='^'){ while(p->s[0]=='^'){
AVEvalExpr * tmp;
p->s++; p->s++;
tmp= new_eval_expr(e_pow, 1, e, parse_pow(p, &sign2)); e= new_eval_expr(e_pow, 1, e, parse_pow(p, &sign2));
if (tmp->param[1]) tmp->param[1]->value *= (sign2|1); if (e->param[1]) e->param[1]->value *= (sign2|1);
e = tmp;
} }
if (e) e->value *= (sign|1); if (e) e->value *= (sign|1);
return e; return e;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment