Commit 8dc6c826 authored by Laurent Aimar's avatar Laurent Aimar
Browse files

* bits.h: fixed a stupid bug.

 * ts.c: removed an unused variable.
parent d5d568e2
......@@ -2,7 +2,7 @@
* bits.h
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: bits.h,v 1.1 2002/12/14 21:32:41 fenrir Exp $
* $Id: bits.h,v 1.2 2002/12/17 21:58:03 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Eric Petit <titer@videolan.org>
......@@ -72,7 +72,7 @@ static inline void bits_write( bits_buffer_t *p_buffer,
{
while( i_count > 0 )
{
if( i_bits & ( 1 << ( i_count - 1 ) ) )
if( ( i_bits >> ( i_count - 1 ) )&0x01 )
{
p_buffer->p_data[p_buffer->i_data] |= p_buffer->i_mask;
}
......
......@@ -2,7 +2,7 @@
* ts.c
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: ts.c,v 1.2 2002/12/15 23:39:41 fenrir Exp $
* $Id: ts.c,v 1.3 2002/12/17 21:58:03 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Eric Petit <titer@videolan.org>
......@@ -539,7 +539,6 @@ static void SetTSDate( sout_buffer_t *p_ts, mtime_t i_dts, mtime_t i_length )
static int Mux( sout_instance_t *p_sout )
{
sout_mux_t *p_mux = (sout_mux_t*)p_sout->p_mux_data;
mtime_t i_dts;
int i_stream;
sout_buffer_t *p_pat, *p_pmt, *p_ts;
......@@ -587,7 +586,6 @@ static int Mux( sout_instance_t *p_sout )
}
p_mux->i_ts_packet++;
SetTSDate( p_ts, i_dts, i_length );
p_sout->pf_write( p_sout, p_ts );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment