aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-08-12 10:56:52 +0000
committerPaul B Mahol <onemda@gmail.com>2013-08-12 10:56:52 +0000
commit9087dcbe5b7e9c4e8a93024013dbc8524d30e997 (patch)
tree7567230f83cae1a1d44d2956e5c495391136257c /libavfilter
parentc103d5f538d9eadab00f7de756bfc40ba0d2bcc5 (diff)
downloadffmpeg-9087dcbe5b7e9c4e8a93024013dbc8524d30e997.tar.gz
lavfi/trim: check for right default value
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/trim.c2
1 files changed, 1 insertions, 1 deletions
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) {