1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-01 12:22:22 +00:00

demux_mkv: fix uninitialized variable

Commit de42015a97 ("demux_mkv: read tags") added code that
failed to initialize a loop variable. Fix. No visible problems caused
by the bug have been reported.
This commit is contained in:
Uoti Urpala 2011-04-02 19:50:36 +03:00
parent f9b5f2870c
commit 1ca838918c

View File

@ -867,7 +867,7 @@ static int demux_mkv_read_tags(demuxer_t *demuxer)
tag.targets.target_chapter_uid || tag.targets.target_attachment_uid)
continue;
for (int j; j < tag.n_simple_tag; j++)
for (int j = 0; j < tag.n_simple_tag; j++)
demux_info_add_bstr(demuxer, tag.simple_tag[j].tag_name, tag.simple_tag[j].tag_string);
}