From 9087dcbe5b7e9c4e8a93024013dbc8524d30e997 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 12 Aug 2013 10:56:52 +0000 Subject: [PATCH] lavfi/trim: check for right default value Signed-off-by: Paul B Mahol --- libavfilter/trim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/trim.c b/libavfilter/trim.c index 9109e77fea..e9f2b20429 100644 --- a/libavfilter/trim.c +++ b/libavfilter/trim.c @@ -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) {