diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-09-23 14:10:52 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-09-23 14:16:34 +0200 |
commit | 7bac6e5cf81b1f956f06d15546a376e32f4ea558 (patch) | |
tree | 19c0c12cf60c6467aacc8d1faf982449c9c27083 /ffprobe.c | |
parent | c74fa39b93eda712f4ec648d9099623cbe4095ee (diff) | |
download | ffmpeg-7bac6e5cf81b1f956f06d15546a376e32f4ea558.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |