1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-17 20:17:55 +02:00

lavf/mpeg: Initialize a stack variable used by memcmp().

Silence a valgrind warning.

Fixes ticket #6160.
(cherry picked from commit a5c1c7a8b3d13c86b453558628951c3f52054ab4)
This commit is contained in:
Carl Eugen Hoyos 2017-02-19 16:15:34 +01:00
parent 9b6af4561b
commit dffd455b9b

View File

@ -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;