[MPlayer-cvslog] r27299 - trunk/libmpdemux/demux_asf.c

reimar subversion at mplayerhq.hu
Wed Jul 16 18:06:14 CEST 2008


Author: reimar
Date: Wed Jul 16 18:06:14 2008
New Revision: 27299

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


Modified:
   trunk/libmpdemux/demux_asf.c

Modified: trunk/libmpdemux/demux_asf.c
==============================================================================
--- trunk/libmpdemux/demux_asf.c	(original)
+++ trunk/libmpdemux/demux_asf.c	Wed Jul 16 18:06:14 2008
@@ -488,6 +488,7 @@ static int demux_asf_fill_buffer(demuxer
               }
               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);
 



More information about the MPlayer-cvslog mailing list