Browse Source

lavfi/trim: check for right default value

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n2.1
Paul B Mahol 12 years ago
parent
commit
9087dcbe5b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/trim.c

+ 1
- 1
libavfilter/trim.c View File

@@ -94,7 +94,7 @@ static int config_input(AVFilterLink *inlink)
s->start_time = s->start_time_dbl * 1e6; s->start_time = s->start_time_dbl * 1e6;
if (s->end_time_dbl != DBL_MAX) if (s->end_time_dbl != DBL_MAX)
s->end_time = s->end_time_dbl * 1e6; 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; s->duration = s->duration_dbl * 1e6;


if (s->start_time != INT64_MAX) { if (s->start_time != INT64_MAX) {


Loading…
Cancel
Save