Commit 49925980 authored by Laurent Aimar's avatar Laurent Aimar

* ogg: cast of lvalue ... gibalou could you test this patch ?

 (I have changed a ((uint8_t *)op.bytes) -= 4; and I'm not sure what it
was meant to do as op.bytes is a "long")
 
parent a4923d5d
......@@ -315,7 +315,7 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
msg_Dbg( p_mux, "adding input" );
p_input->p_sys = (void *)p_stream = malloc( sizeof( ogg_stream_t ) );
p_input->p_sys = p_stream = malloc( sizeof( ogg_stream_t ) );
p_stream->i_cat = p_input->p_fmt->i_cat;
p_stream->i_fourcc = p_input->p_fmt->i_codec;
......@@ -721,8 +721,8 @@ static block_t *OggCreateHeader( sout_mux_t *p_mux, mtime_t i_dts )
if( p_stream->i_fourcc == VLC_FOURCC( 'f', 'l', 'a', 'c' ) )
{
/* Skip the flac stream marker */
((uint8_t *)op.bytes) -= 4;
((uint8_t *)op.packet) += 4;
op.bytes -= 4;
op.packet+= 4;
}
op.b_o_s = 0;
op.e_o_s = 0;
......
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