summaryrefslogtreecommitdiff
path: root/libavformat/mpeg.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2017-02-19 16:15:34 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2017-02-21 02:15:08 +0100
commita5c1c7a8b3d13c86b453558628951c3f52054ab4 (patch)
tree246261cfe4dff5ec0af2e075924859487bb4f610 /libavformat/mpeg.c
parente8a3498f2452ba2be605b1ffb5974143095aacf1 (diff)
lavf/mpeg: Initialize a stack variable used by memcmp().
Silence a valgrind warning. Fixes ticket #6160.
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r--libavformat/mpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 423877e94c..a651cb3eb6 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -138,7 +138,7 @@ typedef struct MpegDemuxContext {
static int mpegps_read_header(AVFormatContext *s)
{
MpegDemuxContext *m = s->priv_data;
- char buffer[7];
+ char buffer[7] = { 0 };
int64_t last_pos = avio_tell(s->pb);
m->header_state = 0xff;