/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <stdlib.h> /* malloc(), free() */
#include <vlc/vlc.h>
#include <vlc_demux.h>
demux_t *p_demux = (demux_t*)p_this;
demux_sys_t *p_sys;
- uint8_t *p_peek;
+ const uint8_t *p_peek;
if( stream_Peek( p_demux->s, &p_peek, 4 ) < 4 )
{
{
p_sys->i_length = i_length;
p_sys->i_time_track = i;
- msg_Dbg( p_demux, "we found a length of: %lld", p_sys->i_length );
+ msg_Dbg( p_demux, "we found a length of: "I64Fd, p_sys->i_length );
}
}
}
if( !b_new && !p_sys->b_have_pack && tk->fmt.i_cat == AUDIO_ES && p_pkt->i_pts > 0 )
{
/* A hack to sync the A/V on PES files. */
- msg_Dbg( p_demux, "force SCR: %lld", p_pkt->i_pts );
+ msg_Dbg( p_demux, "force SCR: "I64Fd, p_pkt->i_pts );
es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_pkt->i_pts );
}
*/
static int ps_pkt_resynch( stream_t *s, uint32_t *pi_code )
{
- uint8_t *p_peek;
+ const uint8_t *p_peek;
int i_peek;
int i_skip;
static block_t *ps_pkt_read( stream_t *s, uint32_t i_code )
{
- uint8_t *p_peek;
+ const uint8_t *p_peek;
int i_peek = stream_Peek( s, &p_peek, 14 );
int i_size = ps_pkt_size( p_peek, i_peek );