[FFmpeg-cvslog] eval: fix swapping of lt() and lte()

Max Lazarov git at videolan.org
Thu Jan 17 03:00:20 CET 2013


ffmpeg | branch: release/0.8 | Max Lazarov <mlazarov at gmail.com> | Fri Mar 30 23:56:56 2012 -0700| [0892a6340f86ff6ae4346fbb86d339ec1c58877b] | committer: Reinhard Tartler

eval: fix swapping of lt() and lte()

CC: libav-stable at libav.org
(cherry picked from commit caac3ab6efde4fc9769e8a7472269356f262970a)

Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0892a6340f86ff6ae4346fbb86d339ec1c58877b
---

 libavutil/eval.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavutil/eval.c b/libavutil/eval.c
index 8bcba36..7dd1d03 100644
--- a/libavutil/eval.c
+++ b/libavutil/eval.c
@@ -273,8 +273,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;



More information about the ffmpeg-cvslog mailing list