Skip to content
Snippets Groups Projects
Commit 9b5d10d7 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avformat/4xm: Check for duplicate track ids


Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit dd949124)
Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent e10f67a6
No related branches found
No related tags found
No related merge requests found
......@@ -148,6 +148,9 @@ static int parse_strk(AVFormatContext *s,
memset(&fourxm->tracks[fourxm->track_count], 0,
sizeof(AudioTrack) * (track + 1 - fourxm->track_count));
fourxm->track_count = track + 1;
} else {
if (fourxm->tracks[track].bits)
return AVERROR_INVALIDDATA;
}
fourxm->tracks[track].adpcm = AV_RL32(buf + 12);
fourxm->tracks[track].channels = AV_RL32(buf + 36);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment