Browse Source

vsrc_testsrc: Fix case without a specified duration

Fixes regression since 98f753ec51

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Michael Niedermayer 13 years ago
parent
commit
3dc24600ba
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavfilter/vsrc_testsrc.c

+ 1
- 0
libavfilter/vsrc_testsrc.c View File

@@ -109,6 +109,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
return ret;
}

test->duration = -1;
if (test->duration_str &&
(ret = av_parse_time(&test->duration, test->duration_str, 1)) < 0) {
av_log(ctx, AV_LOG_ERROR, "Invalid duration: '%s'\n", test->duration_str);


Loading…
Cancel
Save