1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-07 03:56:28 +02:00

A BIG kludge for the calculation of mux_rate, so that times displayed in

the scroll bar are now correct for MPEG-2 streams. There is probably a
better way to do it, but I haven't found in months.
This commit is contained in:
Christophe Massiot 2001-07-18 15:21:51 +00:00
parent d0c9b47957
commit 24305848d4
2 changed files with 12 additions and 1 deletions

View File

@ -57,6 +57,11 @@ HEAD
leakage).
* Added IDEALX developer documentation in doc/.
* Removed the outdated generic decoder.
* Rewrote the video decoder so that it can use multiple processors (--smp).
* Fixed a bug in the video decoder initialization.
* Grayscale mode now turns off chroma IDCT decoding.
* Kludged so that times displayed in the scrollbar are finally correct
for MPEG-2 streams.
0.2.80
Tue, 5 Jun 2001 04:41:06 +0200

View File

@ -2,7 +2,7 @@
* mpeg_system.c: TS, PS and PES management
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: mpeg_system.c,v 1.55 2001/07/17 09:48:08 massiot Exp $
* $Id: mpeg_system.c,v 1.56 2001/07/18 15:21:51 massiot Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Michel Lespinasse <walken@via.ecp.fr>
@ -829,6 +829,12 @@ void input_DemuxPS( input_thread_t * p_input, data_packet_t * p_data )
/* mux_rate */
i_mux_rate = ((u32)U16_AT(p_header + 10) << 6)
| (p_header[12] >> 2);
/* FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME
* This is the biggest kludge ever !
* I don't know what's wrong with mux_rate calculation
* but this heuristic work well : */
i_mux_rate <<= 1;
i_mux_rate /= 3;
}
else
{