[FFmpeg-cvslog] vsrc_testsrc: Fix case without a specified duration

Michael Niedermayer git at videolan.org
Fri Sep 21 04:01:36 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Sep 21 03:00:15 2012 +0200| [3dc24600ba7956360f29c7fed21b3c437bee42b7] | committer: Michael Niedermayer

vsrc_testsrc: Fix case without a specified duration

Fixes regression since 98f753ec5198d4f74ba9f68cc85badf8a6257547

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3dc24600ba7956360f29c7fed21b3c437bee42b7
---

 libavfilter/vsrc_testsrc.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c
index 1fe64fa..85d3789 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);



More information about the ffmpeg-cvslog mailing list