[Ffmpeg-cvslog] r6811 - trunk/libavcodec/eval.c

ods15 subversion
Fri Oct 27 23:37:47 CEST 2006


Author: ods15
Date: Fri Oct 27 23:37:47 2006
New Revision: 6811

Modified:
   trunk/libavcodec/eval.c

Log:
possible bug of 'gte' being read as 'gt', same with 'lte'


Modified: trunk/libavcodec/eval.c
==============================================================================
--- trunk/libavcodec/eval.c	(original)
+++ trunk/libavcodec/eval.c	Fri Oct 27 23:37:47 2006
@@ -254,10 +254,10 @@
     else if( strmatch(next, "max"   ) ) d->type = e_max;
     else if( strmatch(next, "min"   ) ) d->type = e_min;
     else if( strmatch(next, "eq"    ) ) d->type = e_eq;
-    else if( strmatch(next, "gt"    ) ) d->type = e_gt;
     else if( strmatch(next, "gte"   ) ) d->type = e_gte;
-    else if( strmatch(next, "lt"    ) ) { AVEvalExpr * tmp = d->param[1]; d->param[1] = d->param[0]; d->param[0] = tmp; d->type = e_gte; }
+    else if( strmatch(next, "gt"    ) ) d->type = e_gt;
     else if( strmatch(next, "lte"   ) ) { AVEvalExpr * tmp = d->param[1]; d->param[1] = d->param[0]; d->param[0] = tmp; d->type = e_gt; }
+    else if( strmatch(next, "lt"    ) ) { AVEvalExpr * tmp = d->param[1]; d->param[1] = d->param[0]; d->param[0] = tmp; d->type = e_gte; }
     else {
         for(i=0; p->func1_name && p->func1_name[i]; i++){
             if(strmatch(next, p->func1_name[i])){




More information about the ffmpeg-cvslog mailing list