Commit a5c1c7a8 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

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

Silence a valgrind warning.

Fixes ticket #6160.
parent e8a3498f
...@@ -138,7 +138,7 @@ typedef struct MpegDemuxContext { ...@@ -138,7 +138,7 @@ typedef struct MpegDemuxContext {
static int mpegps_read_header(AVFormatContext *s) static int mpegps_read_header(AVFormatContext *s)
{ {
MpegDemuxContext *m = s->priv_data; MpegDemuxContext *m = s->priv_data;
char buffer[7]; char buffer[7] = { 0 };
int64_t last_pos = avio_tell(s->pb); int64_t last_pos = avio_tell(s->pb);
m->header_state = 0xff; m->header_state = 0xff;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment