Do not just print a warning, also fix the len in ASF demuxer!

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27299 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2008-07-16 16:06:14 +00:00
parent c2c1ef0189
commit 3f35a38237
1 changed files with 1 additions and 0 deletions

View File

@ -488,6 +488,7 @@ static int demux_asf_fill_buffer(demuxer_t *demux, demux_stream_t *ds){
}
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);