# HG changeset patch # User reimar # Date 1189804668 0 # Node ID 97eba82233f5ca1c524692e082f3522fddb5ace5 # Parent d6c49e8a8046d5ac9c09c7057b2aaf31e35b0431 live recordings can contain 0-size type 0 chunks, ignore them instead of erroring out. diff -r d6c49e8a8046 -r 97eba82233f5 libmpdemux/demux_ty.c --- a/libmpdemux/demux_ty.c Fri Sep 14 21:03:08 2007 +0000 +++ b/libmpdemux/demux_ty.c Fri Sep 14 21:17:48 2007 +0000 @@ -790,7 +790,7 @@ { if ( size > 0 && size + offset <= CHUNKSIZE ) offset += size; - if (type != 3 && type != 5) { + if (type != 3 && type != 5 && (type != 0 || size > 0)) { mp_msg( MSGT_DEMUX, MSGL_DBG3, "ty:Invalid Type %x\n", type ); invalidType++; }