changeset 2763:1af36191ad26

Progress indicator for index creation.
author atmos4
date Wed, 07 Nov 2001 18:52:50 +0000
parents d4a8894c4b44
children 6f7814af2a58
files libmpdemux/aviheader.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/aviheader.c	Wed Nov 07 18:21:15 2001 +0000
+++ b/libmpdemux/aviheader.c	Wed Nov 07 18:52:50 2001 +0000
@@ -222,6 +222,8 @@
 	    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));
+    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
     { unsigned char tmp[64];