[MPlayer-cvslog] r22604 - trunk/libmpdemux/demux_audio.c

reimar subversion at mplayerhq.hu
Thu Mar 15 11:38:51 CET 2007


Author: reimar
Date: Thu Mar 15 11:38:51 2007
New Revision: 22604

Modified:
   trunk/libmpdemux/demux_audio.c

Log:
Check for eof in loop searching for data chunk.
Fixes bug #775.


Modified: trunk/libmpdemux/demux_audio.c
==============================================================================
--- trunk/libmpdemux/demux_audio.c	(original)
+++ trunk/libmpdemux/demux_audio.c	Thu Mar 15 11:38:51 2007
@@ -453,7 +453,7 @@ static int demux_audio_open(demuxer_t* d
       chunk_size = stream_read_dword_le(demuxer->stream);
       if (chunk_type != mmioFOURCC('d', 'a', 't', 'a'))
         stream_skip(demuxer->stream, chunk_size);
-    } while (chunk_type != mmioFOURCC('d', 'a', 't', 'a'));
+    } while (!s->eof && chunk_type != mmioFOURCC('d', 'a', 't', 'a'));
     demuxer->movi_start = stream_tell(s);
     demuxer->movi_end = chunk_size ? demuxer->movi_start + chunk_size : s->end_pos;
 //    printf("wav: %X .. %X\n",(int)demuxer->movi_start,(int)demuxer->movi_end);



More information about the MPlayer-cvslog mailing list