1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00

10l, off by one error in last patch (codecdata length sanity check),

caused crashes with qdmc audio.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16680 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2005-10-05 14:55:06 +00:00
parent 6b22e084f0
commit 6880f9a572

View File

@ -712,7 +712,7 @@ static void lschunks(demuxer_t* demuxer,int level,off_t endpos,mov_track_t* trak
sh->codecdata = (unsigned char *)malloc(sh->codecdata_len);
memcpy(sh->codecdata, &trak->stdata[52+char2int(trak->stdata,52)], sh->codecdata_len);
} else {
if (len > 8 && len + 44 < trak->stdata_len) {
if (len > 8 && len + 44 <= trak->stdata_len) {
sh->codecdata_len = len-8;
sh->codecdata = trak->stdata+44+8;
}