diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-21 03:00:15 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-21 03:00:15 +0200 |
commit | 3dc24600ba7956360f29c7fed21b3c437bee42b7 (patch) | |
tree | 5261cca6e866b41bd6193115b34176a788de2f4f | |
parent | cc07a7925e9967f8f9dcc47014d108ffa2f4cf51 (diff) | |
download | ffmpeg-3dc24600ba7956360f29c7fed21b3c437bee42b7.tar.gz |
vsrc_testsrc: Fix case without a specified duration
Fixes regression since 98f753ec5198d4f74ba9f68cc85badf8a6257547
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavfilter/vsrc_testsrc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c index 1fe64fa06c..85d3789cec 100644 --- a/libavfilter/vsrc_testsrc.c +++ b/libavfilter/vsrc_testsrc.c @@ -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); |