Mercurial > mplayer.hg
changeset 21968:92f83f7c8eef
Instead of printing a useless "sig11 coming soon" message, just abort parsing
in the hope of still saving things (helps with at least
http://sam.zoy.org/zzuf/lol-mplayer.wmv).
author | reimar |
---|---|
date | Sun, 21 Jan 2007 18:29:18 +0000 |
parents | ddcdba92023c |
children | ae6aa1d099ff |
files | libmpdemux/demux_asf.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_asf.c Sun Jan 21 18:22:07 2007 +0000 +++ b/libmpdemux/demux_asf.c Sun Jan 21 18:29:18 2007 +0000 @@ -360,7 +360,10 @@ unsigned int time2=0; int keyframe=0; - if(p>=p_end) mp_msg(MSGT_DEMUX,MSGL_V,"Warning! invalid packet 1, sig11 coming soon...\n"); + if(p>=p_end) { + mp_msg(MSGT_DEMUX,MSGL_V,"Warning! invalid packet 1, aborting parsing...\n"); + break; + } if( mp_msg_test(MSGT_DEMUX,MSGL_DBG2) ){ int i;