From eaf7b8614fd02374e811b73967076fc48c6b461d Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 14 Sep 2007 21:17:48 +0000 Subject: live recordings can contain 0-size type 0 chunks, ignore them instead of erroring out. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24509 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_ty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmpdemux/demux_ty.c') diff --git a/libmpdemux/demux_ty.c b/libmpdemux/demux_ty.c index 183c8b5946..ae3d9034bb 100644 --- a/libmpdemux/demux_ty.c +++ b/libmpdemux/demux_ty.c @@ -790,7 +790,7 @@ static int demux_ty_fill_buffer( demuxer_t *demux, demux_stream_t *dsds ) { 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++; } -- cgit v1.2.3