Mercurial > mplayer.hg
changeset 3561:40060e4770f3
Divide by Zero fix.
author | atmos4 |
---|---|
date | Mon, 17 Dec 2001 16:51:34 +0000 |
parents | 61e0e3ecf47a |
children | e84d6c8ff59b |
files | libmpdemux/aviheader.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/aviheader.c Mon Dec 17 16:05:36 2001 +0000 +++ b/libmpdemux/aviheader.c Mon Dec 17 16:51:34 2001 +0000 @@ -223,8 +223,7 @@ case 2: if(c==0x1B6) idx->dwFlags=0;break; // divx 4 } } - //mp_msg(MSGT_HEADER,MSGL_STATUS,"Generating Index: %02d%%\r", (int)demuxer->filepos/((int)demuxer->movi_end/100)); - mp_msg(MSGT_HEADER,MSGL_STATUS,"Generating Index...\r"); + mp_msg(MSGT_HEADER,MSGL_STATUS,"Generating Index: %02d%%\r", (int)demuxer->filepos/((int)demuxer->movi_end/100+1)); fflush(stdout); mp_dbg(MSGT_HEADER,MSGL_DBG2,"%08X %08X %.4s %08X %X\n",(int)demuxer->filepos,id,(char *) &id,(int)c,(unsigned int) idx->dwFlags); #if 0