Mercurial > mplayer.hg
changeset 16679:66ce674de624
10l, off by one error in last patch (codecdata length sanity check),
caused crashes with qdmc audio.
author | reimar |
---|---|
date | Wed, 05 Oct 2005 14:55:06 +0000 |
parents | 4ebad3313fe6 |
children | d229c8595328 |
files | libmpdemux/demux_mov.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_mov.c Wed Oct 05 14:43:24 2005 +0000 +++ b/libmpdemux/demux_mov.c Wed Oct 05 14:55:06 2005 +0000 @@ -712,7 +712,7 @@ 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; }