mirror of https://github.com/mpv-player/mpv
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:
parent
92f501d8b2
commit
eaf7b8614f
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue