diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-10-27 21:13:31 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-10-27 21:13:31 +0000 |
commit | 577eab6b62bdf5b67dd2ed21ef53c8d09abfa6b7 (patch) | |
tree | 4528e7cb71ef9d768a8f96dff4deba0f56ca144c /libavcodec/eval.c | |
parent | a98f4515cfb5d0707da0fa8caf2791919ae76819 (diff) | |
download | ffmpeg-577eab6b62bdf5b67dd2ed21ef53c8d09abfa6b7.tar.gz |
minor simplification
Originally committed as revision 6810 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/eval.c')
-rw-r--r-- | libavcodec/eval.c | 7 |
1 files 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; |