mirror of
https://github.com/mpv-player/mpv
synced 2025-03-23 11:47:45 +00:00
demux_mkv: fix uninitialized variable
Found by Coverity.
This commit is contained in:
parent
524aa99401
commit
3df8e64ec0
@ -1760,7 +1760,7 @@ static int demux_mkv_open(demuxer_t *demuxer, enum demux_check check)
|
|||||||
int64_t end_pos;
|
int64_t end_pos;
|
||||||
|
|
||||||
bstr start = stream_peek(s, 4);
|
bstr start = stream_peek(s, 4);
|
||||||
uint32_t start_id;
|
uint32_t start_id = 0;
|
||||||
for (int n = 0; n < start.len; n++)
|
for (int n = 0; n < start.len; n++)
|
||||||
start_id = (start_id << 8) | start.start[n];
|
start_id = (start_id << 8) | start.start[n];
|
||||||
if (start_id != EBML_ID_EBML)
|
if (start_id != EBML_ID_EBML)
|
||||||
|
Loading…
Reference in New Issue
Block a user