Commit 3dc24600 authored by Michael Niedermayer's avatar Michael Niedermayer

vsrc_testsrc: Fix case without a specified duration

Fixes regression since 98f753ecSigned-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent cc07a792
...@@ -109,6 +109,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args) ...@@ -109,6 +109,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
return ret; return ret;
} }
test->duration = -1;
if (test->duration_str && if (test->duration_str &&
(ret = av_parse_time(&test->duration, test->duration_str, 1)) < 0) { (ret = av_parse_time(&test->duration, test->duration_str, 1)) < 0) {
av_log(ctx, AV_LOG_ERROR, "Invalid duration: '%s'\n", test->duration_str); av_log(ctx, AV_LOG_ERROR, "Invalid duration: '%s'\n", test->duration_str);
......
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