[FFmpeg-cvslog] lavfi/trim: check for right default value

Paul B Mahol git at videolan.org
Mon Aug 12 14:51:25 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Aug 12 10:56:52 2013 +0000| [9087dcbe5b7e9c4e8a93024013dbc8524d30e997] | committer: Paul B Mahol

lavfi/trim: check for right default value

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9087dcbe5b7e9c4e8a93024013dbc8524d30e997
---

 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) {



More information about the ffmpeg-cvslog mailing list