# HG changeset patch # User arpi # Date 1004821033 0 # Node ID fd279f14b9ab7fa8d750b6add340e805e9336d5a # Parent 958d10763c3498af0849f23434712e68ba56394f new stream field: size diff -r 958d10763c34 -r fd279f14b9ab libmpdemux/aviwrite.c --- 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; } diff -r 958d10763c34 -r fd279f14b9ab libmpdemux/aviwrite.h --- 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;