diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2017-02-19 16:15:34 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2017-02-21 02:16:28 +0100 |
commit | 518158693ec3470b9600773f6f4b892fe7d59580 (patch) | |
tree | c60acb0524d512a9bb2c59f328a95bd0ad3b8bbd | |
parent | 92d8106fa6108a5e7dd3080f6b094636d5aedfc0 (diff) | |
download | ffmpeg-518158693ec3470b9600773f6f4b892fe7d59580.tar.gz |
lavf/mpeg: Initialize a stack variable used by memcmp().
Silence a valgrind warning.
Fixes ticket #6160.
(cherry picked from commit a5c1c7a8b3d13c86b453558628951c3f52054ab4)
-rw-r--r-- | libavformat/mpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index 24847ba249..fe02af8fed 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; |