diff options
author | Max Lazarov <mlazarov@gmail.com> | 2012-03-30 23:56:56 -0700 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-09-28 08:05:40 +0200 |
commit | 25a1a5b1b38ba86501cea51c961c10a46ecb49f1 (patch) | |
tree | dad86952cf5ccb507820399181fccc176accb5be /libavutil | |
parent | 6704522ca9dd32c858ee474492be568c386910f9 (diff) | |
download | ffmpeg-25a1a5b1b38ba86501cea51c961c10a46ecb49f1.tar.gz |
eval: fix swapping of lt() and lte()
CC: libav-stable@libav.org
(cherry picked from commit caac3ab6efde4fc9769e8a7472269356f262970a)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/eval.c b/libavutil/eval.c index 9941ed7060..44d1428d58 100644 --- a/libavutil/eval.c +++ b/libavutil/eval.c @@ -277,8 +277,8 @@ static int parse_primary(AVExpr **e, Parser *p) else if (strmatch(next, "eq" )) d->type = e_eq; else if (strmatch(next, "gte" )) d->type = e_gte; else if (strmatch(next, "gt" )) d->type = e_gt; - else if (strmatch(next, "lte" )) { AVExpr *tmp = d->param[1]; d->param[1] = d->param[0]; d->param[0] = tmp; d->type = e_gt; } - else if (strmatch(next, "lt" )) { AVExpr *tmp = d->param[1]; d->param[1] = d->param[0]; d->param[0] = tmp; d->type = e_gte; } + else if (strmatch(next, "lte" )) { AVExpr *tmp = d->param[1]; d->param[1] = d->param[0]; d->param[0] = tmp; d->type = e_gte; } + else if (strmatch(next, "lt" )) { AVExpr *tmp = d->param[1]; d->param[1] = d->param[0]; d->param[0] = tmp; d->type = e_gt; } else if (strmatch(next, "ld" )) d->type = e_ld; else if (strmatch(next, "isnan" )) d->type = e_isnan; else if (strmatch(next, "st" )) d->type = e_st; |