forked from FFmpeg/FFmpeg
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue