lavfi/trim: check for right default value
authorPaul B Mahol <onemda@gmail.com>
Mon, 12 Aug 2013 10:56:52 +0000 (10:56 +0000)
committerPaul B Mahol <onemda@gmail.com>
Mon, 12 Aug 2013 10:56:52 +0000 (10:56 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/trim.c

index 9109e77..e9f2b20 100644 (file)
@@ -94,7 +94,7 @@ static int config_input(AVFilterLink *inlink)
         s->start_time = s->start_time_dbl * 1e6;
     if (s->end_time_dbl != DBL_MAX)
         s->end_time = s->end_time_dbl * 1e6;
-    if (s->duration_dbl != DBL_MAX)
+    if (s->duration_dbl != 0)
         s->duration = s->duration_dbl * 1e6;
 
     if (s->start_time != INT64_MAX) {