mirror of https://github.com/mpv-player/mpv
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:
parent
cc9d83b858
commit
8e793a9998
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue