vsrc_testsrc: Fix case without a specified duration
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 21 Sep 2012 01:00:15 +0000 (03:00 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 21 Sep 2012 01:00:15 +0000 (03:00 +0200)
Fixes regression since 98f753ec5198d4f74ba9f68cc85badf8a6257547

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vsrc_testsrc.c

index 1fe64fa..85d3789 100644 (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);