Mercurial > mplayer.hg
diff libmpdemux/aviwrite.c @ 2652:fd279f14b9ab
new stream field: size
author | arpi |
---|---|
date | Sat, 03 Nov 2001 20:57:13 +0000 |
parents | c1e24e01601b |
children | 8cd761968f35 |
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; }