changeset 2652:fd279f14b9ab

new stream field: size
author arpi
date Sat, 03 Nov 2001 20:57:13 +0000
parents 958d10763c34
children a863a97f3a1c
files libmpdemux/aviwrite.c libmpdemux/aviwrite.h
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/aviwrite.c	Sat Nov 03 19:40:38 2001 +0000
+++ b/libmpdemux/aviwrite.c	Sat Nov 03 20:57:13 2001 +0000
@@ -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;
 
 }
--- a/libmpdemux/aviwrite.h	Sat Nov 03 19:40:38 2001 +0000
+++ b/libmpdemux/aviwrite.h	Sat Nov 03 20:57:13 2001 +0000
@@ -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;