changeset 22924:4822223d8425

small syntax fix: muxrate is expressed in units of 400 bits/second, not 50 bytes per second
author nicodvb
date Sun, 08 Apr 2007 09:50:27 +0000
parents 019fe1fd36b0
children a8f534c4e071
files libmpdemux/muxer_mpeg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/muxer_mpeg.c	Sat Apr 07 21:00:14 2007 +0000
+++ b/libmpdemux/muxer_mpeg.c	Sun Apr 08 09:50:27 2007 +0000
@@ -499,7 +499,7 @@
 
 static void write_mpeg_rate(int type, unsigned char *b, unsigned int rate) 
 {
-	rate = (rate+49) / 50;
+	rate = ((rate*8)+399) / 400;
 	
 	if(type == MUX_MPEG1)
 	{