Mercurial > mplayer.hg
changeset 24489:97eba82233f5
live recordings can contain 0-size type 0 chunks, ignore them instead
of erroring out.
author | reimar |
---|---|
date | Fri, 14 Sep 2007 21:17:48 +0000 |
parents | d6c49e8a8046 |
children | 2074d81d4142 |
files | libmpdemux/demux_ty.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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++; }