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
This commit is contained in:
reimar 2007-09-14 21:17:48 +00:00
parent 92f501d8b2
commit eaf7b8614f
1 changed files with 1 additions and 1 deletions

View File

@ -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++;
}