[MPlayer-cvslog] r29289 - trunk/libmpdemux/demux_real.c

rtogni subversion at mplayerhq.hu
Sun May 10 23:13:15 CEST 2009


Author: rtogni
Date: Sun May 10 23:13:15 2009
New Revision: 29289

Log:
chunk size = 0 is valid for DATA chunks (used in live streams), don't 
print warning message

Modified:
   trunk/libmpdemux/demux_real.c

Modified: trunk/libmpdemux/demux_real.c
==============================================================================
--- trunk/libmpdemux/demux_real.c	Sun May 10 16:00:00 2009	(r29288)
+++ trunk/libmpdemux/demux_real.c	Sun May 10 23:13:15 2009	(r29289)
@@ -1127,7 +1127,7 @@ static demuxer_t* demux_open_real(demuxe
 	mp_msg(MSGT_DEMUX,MSGL_V, "Chunk: %.4s (%x) (size: 0x%x, offset: 0x%x)\n",
 	    (char *)&chunk_id, chunk_id, chunk_size, chunk_pos);
 	
-	if (chunk_size < 10){
+	if (chunk_id != MKTAG('D', 'A', 'T', 'A') && chunk_size < 10){
 	    mp_msg(MSGT_DEMUX,MSGL_ERR,"demux_real: invalid chunksize! (%d)\n",chunk_size);
 	    break; //return;
 	}


More information about the MPlayer-cvslog mailing list