Mercurial > mplayer.hg
changeset 27267:62b8f385a0b9
Do not just print a warning, also fix the len in ASF demuxer!
author | reimar |
---|---|
date | Wed, 16 Jul 2008 16:06:14 +0000 |
parents | 1b9c71c54df7 |
children | d79f8b282b35 |
files | libmpdemux/demux_asf.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_asf.c Wed Jul 16 16:05:58 2008 +0000 +++ b/libmpdemux/demux_asf.c Wed Jul 16 16:06:14 2008 +0000 @@ -488,6 +488,7 @@ } if(len<0 || (p+len)>p_end){ mp_msg(MSGT_DEMUX,MSGL_V,"ASF_parser: warning! segment len=%d\n",len); + len = p_end - p; } mp_dbg(MSGT_DEMUX,MSGL_DBG4," seg #%d: streamno=%d seq=%d type=%02X len=%d\n",seg,streamno,seq,rlen,len);