[MPlayer-cvslog] r22942 - trunk/libmpdemux/muxer_mpeg.c
nicodvb
subversion at mplayerhq.hu
Sun Apr 8 11:50:27 CEST 2007
Author: nicodvb
Date: Sun Apr 8 11:50:27 2007
New Revision: 22942
Modified:
trunk/libmpdemux/muxer_mpeg.c
Log:
small syntax fix: muxrate is expressed in units of 400 bits/second, not 50 bytes per second
Modified: trunk/libmpdemux/muxer_mpeg.c
==============================================================================
--- trunk/libmpdemux/muxer_mpeg.c (original)
+++ trunk/libmpdemux/muxer_mpeg.c Sun Apr 8 11:50:27 2007
@@ -499,7 +499,7 @@ static void write_mpeg_ts(unsigned char
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)
{
More information about the MPlayer-cvslog
mailing list