aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-21 03:00:15 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-21 03:00:15 +0200
commit3dc24600ba7956360f29c7fed21b3c437bee42b7 (patch)
tree5261cca6e866b41bd6193115b34176a788de2f4f
parentcc07a7925e9967f8f9dcc47014d108ffa2f4cf51 (diff)
downloadffmpeg-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.c1
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);