lavfi/trim: check for right default value

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2013-08-12 10:56:52 +00:00
parent c103d5f538
commit 9087dcbe5b

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