changeset 29247:fe871e69b1b3

chunk size = 0 is valid for DATA chunks (used in live streams), don't print warning message
author rtogni
date Sun, 10 May 2009 21:13:15 +0000
parents 8861e08033eb
children 6ebc9e7ffa12
files libmpdemux/demux_real.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_real.c	Sun May 10 14:00:00 2009 +0000
+++ b/libmpdemux/demux_real.c	Sun May 10 21:13:15 2009 +0000
@@ -1127,7 +1127,7 @@
 	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;
 	}