Commit 7fb4b036 authored by Zhao Zhili's avatar Zhao Zhili Committed by Michael Niedermayer

ffprobe: fix use of uninitialized variable

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 2955cd44
...@@ -3328,6 +3328,7 @@ static int parse_read_interval(const char *interval_spec, ...@@ -3328,6 +3328,7 @@ static int parse_read_interval(const char *interval_spec,
} }
interval->end = lli; interval->end = lli;
} else { } else {
interval->duration_frames = 0;
ret = av_parse_time(&us, p, 1); ret = av_parse_time(&us, p, 1);
if (ret < 0) { if (ret < 0) {
av_log(NULL, AV_LOG_ERROR, "Invalid interval end/duration specification '%s'\n", p); av_log(NULL, AV_LOG_ERROR, "Invalid interval end/duration specification '%s'\n", p);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment