[MPlayer-cvslog] r20340 - trunk/libmpdemux/demux_audio.c
reimar
subversion at mplayerhq.hu
Sat Oct 21 21:58:49 CEST 2006
Author: reimar
Date: Sat Oct 21 21:58:49 2006
New Revision: 20340
Modified:
trunk/libmpdemux/demux_audio.c
Log:
Try playing files with wrong wav header length, fixes riff_broken_hrdlen.wav
(bug #238)
Modified: trunk/libmpdemux/demux_audio.c
==============================================================================
--- trunk/libmpdemux/demux_audio.c (original)
+++ trunk/libmpdemux/demux_audio.c Sat Oct 21 21:58:49 2006
@@ -411,13 +411,11 @@
l = stream_read_dword_le(s);
if(l < 16) {
mp_msg(MSGT_DEMUX,MSGL_ERR,"[demux_audio] Bad wav header length: too short (%d)!!!\n",l);
- free_sh_audio(demuxer, 0);
- return 0;
+ l = 16;
}
if(l > MAX_WAVHDR_LEN) {
mp_msg(MSGT_DEMUX,MSGL_ERR,"[demux_audio] Bad wav header length: too long (%d)!!!\n",l);
- free_sh_audio(demuxer, 0);
- return 0;
+ l = 16;
}
sh_audio->wf = w = malloc(l > sizeof(WAVEFORMATEX) ? l : sizeof(WAVEFORMATEX));
w->wFormatTag = sh_audio->format = stream_read_word_le(s);
More information about the MPlayer-cvslog
mailing list