[FFmpeg-devel] [PATCH 1/2] lavfi/trim: check for right default value
Paul B Mahol
onemda at gmail.com
Mon Aug 12 13:01:37 CEST 2013
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
libavfilter/trim.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/trim.c b/libavfilter/trim.c
index 9109e77..e9f2b20 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) {
--
1.7.11.2
More information about the ffmpeg-devel
mailing list