1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 06:42:03 +00: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:
rtognimp 2003-03-22 20:15:03 +00:00
parent c67632e7f5
commit e7b942ecb1

View File

@ -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);
@ -186,6 +186,7 @@ int demux_audio_open(demuxer_t* demuxer) {
l -= w->cbSize;
}
}
}
if(verbose>0) print_wave_header(w);
if(l)