ffprobe: fix use of uninitialized variable
authorZhao Zhili <wantlamy@gmail.com>
Thu, 17 Aug 2017 02:24:01 +0000 (10:24 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 18 Aug 2017 01:02:11 +0000 (03:02 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
ffprobe.c

index f22c4f5..50d7c1a 100644 (file)
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -3328,6 +3328,7 @@ static int parse_read_interval(const char *interval_spec,
             }
             interval->end = lli;
         } else {
+            interval->duration_frames = 0;
             ret = av_parse_time(&us, p, 1);
             if (ret < 0) {
                 av_log(NULL, AV_LOG_ERROR, "Invalid interval end/duration specification '%s'\n", p);