mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-19 05:40:56 +00:00
lavfi/trim: check for right default value
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
c103d5f538
commit
9087dcbe5b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user