1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-22 03:08:33 +00:00

demux_mkv: fix uninitialized variable

Found by Coverity.
This commit is contained in:
wm4 2014-11-21 03:50:40 +01:00
parent 524aa99401
commit 3df8e64ec0

View File

@ -1760,7 +1760,7 @@ static int demux_mkv_open(demuxer_t *demuxer, enum demux_check check)
int64_t end_pos;
bstr start = stream_peek(s, 4);
uint32_t start_id;
uint32_t start_id = 0;
for (int n = 0; n < start.len; n++)
start_id = (start_id << 8) | start.start[n];
if (start_id != EBML_ID_EBML)