Mercurial > mplayer.hg
changeset 27217:28f249556ecc
Only read wav header cbSize when there is enough space in header.
author | reimar |
---|---|
date | Thu, 10 Jul 2008 20:10:11 +0000 |
parents | b05556cd284d |
children | 932d756585cc |
files | libmpdemux/demux_audio.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_audio.c Thu Jul 10 20:06:43 2008 +0000 +++ b/libmpdemux/demux_audio.c Thu Jul 10 20:10:11 2008 +0000 @@ -390,7 +390,7 @@ w->cbSize = 0; sh_audio->i_bps = sh_audio->wf->nAvgBytesPerSec; l -= 16; - if (l > 0) { + if (l >= 2) { w->cbSize = FFMAX(stream_read_word_le(s), 0); l -= 2; if (l < w->cbSize) {