mirror of
https://github.com/mpv-player/mpv
synced 2024-09-05 02:48:21 +02:00
Warning fix, patch by Dominik Mierzejewsky
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9656 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c67632e7f5
commit
e7b942ecb1
@ -175,7 +175,7 @@ int demux_audio_open(demuxer_t* demuxer) {
|
||||
if (l > 0) {
|
||||
w->cbSize = stream_read_word_le(s);
|
||||
l -= 2;
|
||||
if (w->cbSize > 0)
|
||||
if (w->cbSize > 0) {
|
||||
if (l < w->cbSize) {
|
||||
mp_msg(MSGT_DEMUX,MSGL_ERR,"[demux_audio] truncated extradata (%d < %d)\n",
|
||||
l,w->cbSize);
|
||||
@ -185,6 +185,7 @@ int demux_audio_open(demuxer_t* demuxer) {
|
||||
stream_read(s,(char*)((char*)(w)+sizeof(WAVEFORMATEX)),w->cbSize);
|
||||
l -= w->cbSize;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(verbose>0) print_wave_header(w);
|
||||
|
Loading…
Reference in New Issue
Block a user