summaryrefslogtreecommitdiff
path: root/ffprobe.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-09-23 14:10:52 +0200
committerStefano Sabatini <stefasab@gmail.com>2013-09-23 14:16:34 +0200
commit7bac6e5cf81b1f956f06d15546a376e32f4ea558 (patch)
tree19c0c12cf60c6467aacc8d1faf982449c9c27083 /ffprobe.c
parentc74fa39b93eda712f4ec648d9099623cbe4095ee (diff)
ffprobe: fix uninitialized variable warning
Fix warning: ffprobe.c:1684:21: warning: ‘start’ may be used uninitialized in this function [-Wmaybe-uninitialized] end = start + interval->end; The warning is a false positive, since the variable is accessed only if has_start is set, and in that case start has been already set.
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffprobe.c b/ffprobe.c
index bbcdc975e5..8b1a584ab3 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1636,7 +1636,7 @@ static int read_interval_packets(WriterContext *w, AVFormatContext *fmt_ctx,
AVPacket pkt, pkt1;
AVFrame frame;
int ret = 0, i = 0, frame_count = 0;
- int64_t start, end = interval->end;
+ int64_t start = -INT64_MAX, end = interval->end;
int has_start = 0, has_end = interval->has_end && !interval->end_is_offset;
av_init_packet(&pkt);