[Mplayer-cvslog] CVS: main/libmpdemux aviwrite.c,1.5,1.6 aviwrite.h,1.2,1.3

Arpi of Ize arpi at mplayer.dev.hu
Sat Nov 3 21:58:06 CET 2001


Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv24885

Modified Files:
	aviwrite.c aviwrite.h 
Log Message:
new stream field: size

Index: aviwrite.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/aviwrite.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- aviwrite.c	2 Nov 2001 17:43:05 -0000	1.5
+++ aviwrite.c	3 Nov 2001 20:57:13 -0000	1.6
@@ -28,6 +28,7 @@
     s->type=type;
     s->id=muxer->avih.dwStreams;
     s->timer=0.0;
+    s->size=0;
     switch(type){
     case AVIWRITE_TYPE_VIDEO:
       s->ckid=mmioFOURCC(('0'+s->id/10),('0'+(s->id%10)),'d','c');
@@ -103,6 +104,7 @@
 	s->h.dwLength++;
     }
     s->timer=(double)s->h.dwLength*s->h.dwScale/s->h.dwRate;
+    s->size+=len;
     if(len>s->h.dwSuggestedBufferSize) s->h.dwSuggestedBufferSize=len;
 
 }

Index: aviwrite.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/aviwrite.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- aviwrite.h	31 Oct 2001 16:08:26 -0000	1.2
+++ aviwrite.h	3 Nov 2001 20:57:13 -0000	1.3
@@ -10,6 +10,7 @@
   int id;    // stream no
   unsigned int ckid; // chunk id (00dc 01wb etc)
   double timer;
+  unsigned int size;
   // buffering:
   unsigned char *buffer;
   unsigned int buffer_size;




More information about the MPlayer-cvslog mailing list