Browse code

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

Originally committed as revision 6811 to svn://svn.ffmpeg.org/ffmpeg/trunk

Oded Shimon authored on 2006/10/28 06:37:47
Showing 1 changed files
... ...
@@ -254,10 +254,10 @@ static AVEvalExpr * parse_primary(Parser *p) {
254 254
     else if( strmatch(next, "max"   ) ) d->type = e_max;
255 255
     else if( strmatch(next, "min"   ) ) d->type = e_min;
256 256
     else if( strmatch(next, "eq"    ) ) d->type = e_eq;
257
-    else if( strmatch(next, "gt"    ) ) d->type = e_gt;
258 257
     else if( strmatch(next, "gte"   ) ) d->type = e_gte;
259
-    else if( strmatch(next, "lt"    ) ) { AVEvalExpr * tmp = d->param[1]; d->param[1] = d->param[0]; d->param[0] = tmp; d->type = e_gte; }
258
+    else if( strmatch(next, "gt"    ) ) d->type = e_gt;
260 259
     else if( strmatch(next, "lte"   ) ) { AVEvalExpr * tmp = d->param[1]; d->param[1] = d->param[0]; d->param[0] = tmp; d->type = e_gt; }
260
+    else if( strmatch(next, "lt"    ) ) { AVEvalExpr * tmp = d->param[1]; d->param[1] = d->param[0]; d->param[0] = tmp; d->type = e_gte; }
261 261
     else {
262 262
         for(i=0; p->func1_name && p->func1_name[i]; i++){
263 263
             if(strmatch(next, p->func1_name[i])){