[Mplayer-cvslog] CVS: main mencoder.c,1.18,1.19

Arpi of Ize arpi at mplayer.dev.hu
Sat Nov 3 22:09:23 CET 2001


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

Modified Files:
	mencoder.c 
Log Message:
avg bps calc fixed

Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- mencoder.c	3 Nov 2001 21:00:04 -0000	1.18
+++ mencoder.c	3 Nov 2001 21:09:21 -0000	1.19
@@ -637,10 +637,11 @@
 		}
 		break;
 	    }
-	    mux_a->wf->nAvgBytesPerSec=mux_a->size/mux_a->timer;
 	}
 	if(len<=0) break; // EOF?
 	aviwrite_write_chunk(muxer,mux_a,muxer_f,len,0);
+	if(!mux_a->h.dwSampleSize && mux_a->timer>0)
+	    mux_a->wf->nAvgBytesPerSec=mux_a->size/mux_a->timer; // avg bps (VBR)
 	if(mux_a->buffer_len>=len){
 	    mux_a->buffer_len-=len;
 	    memcpy(mux_a->buffer,mux_a->buffer+len,mux_a->buffer_len);




More information about the MPlayer-cvslog mailing list