(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")
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;
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;