Commit 9087dcbe authored by Paul B Mahol's avatar Paul B Mahol

lavfi/trim: check for right default value

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent c103d5f5
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment