10l cbSize not inited for l=16.\n Could give problem in print_wave_header

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9617 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtognimp 2003-03-17 20:38:23 +00:00
parent cc9d83b858
commit 8e793a9998
1 changed files with 1 additions and 0 deletions

View File

@ -170,6 +170,7 @@ int demux_audio_open(demuxer_t* demuxer) {
w->nAvgBytesPerSec = stream_read_dword_le(s); w->nAvgBytesPerSec = stream_read_dword_le(s);
w->nBlockAlign = stream_read_word_le(s); w->nBlockAlign = stream_read_word_le(s);
w->wBitsPerSample = sh_audio->samplesize = stream_read_word_le(s); w->wBitsPerSample = sh_audio->samplesize = stream_read_word_le(s);
w->cbSize = 0;
l -= 16; l -= 16;
if (l > 0) { if (l > 0) {
w->cbSize = stream_read_word_le(s); w->cbSize = stream_read_word_le(s);