* mkv.cpp : matroska demuxer
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: mkv.cpp,v 1.18 2003/08/01 00:05:07 gbazin Exp $
+ * $Id: mkv.cpp,v 1.19 2003/08/10 14:21:15 gbazin Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
tcs.ReadData( p_sys->es->I_O() );
p_sys->i_timescale = uint64(tcs);
- msg_Dbg( p_input, "| | + TimecodeScale=%lld", p_sys->i_timescale );
+ msg_Dbg( p_input, "| | + TimecodeScale="I64Fd,
+ p_sys->i_timescale );
}
else if( EbmlId( *el2 ) == KaxDuration::ClassInfos.GlobalId )
{
defd.ReadData( p_sys->es->I_O() );
tk.i_default_duration = uint64(defd);
- msg_Dbg( p_input, "| | | + Track Default Duration=%lld", uint64(defd) );
+ msg_Dbg( p_input, "| | | + Track Default Duration="I64Fd, uint64(defd) );
}
else if( EbmlId( *el3 ) == KaxTrackTimecodeScale::ClassInfos.GlobalId )
{
tk.p_extra_data = (uint8_t*)malloc( tk.i_extra_data );
memcpy( tk.p_extra_data, cpriv.GetBuffer(), tk.i_extra_data );
}
- msg_Dbg( p_input, "| | | + Track CodecPrivate size=%lld", cpriv.GetSize() );
+ msg_Dbg( p_input, "| | | + Track CodecPrivate size="I64Fd, cpriv.GetSize() );
}
else if( EbmlId( *el3 ) == KaxCodecName::ClassInfos.GlobalId )
{
{
if( id == KaxCues::ClassInfos.GlobalId )
{
- msg_Dbg( p_input, "| | | = cues at %lld", i_pos );
+ msg_Dbg( p_input, "| | | = cues at "I64Fd, i_pos );
p_sys->i_cues_position = p_sys->segment->GetGlobalPosition( i_pos );
}
else if( id == KaxChapters::ClassInfos.GlobalId )
{
- msg_Dbg( p_input, "| | | = chapters at %lld", i_pos );
+ msg_Dbg( p_input, "| | | = chapters at "I64Fd, i_pos );
p_sys->i_chapters_position = p_sys->segment->GetGlobalPosition( i_pos );
}
else if( id == KaxTags::ClassInfos.GlobalId )
{
- msg_Dbg( p_input, "| | | = tags at %lld", i_pos );
+ msg_Dbg( p_input, "| | | = tags at "I64Fd, i_pos );
p_sys->i_tags_position = p_sys->segment->GetGlobalPosition( i_pos );
}
int i_track_skipping;
int i_track;
- msg_Dbg( p_input, "seek request to %lld (%d%%)", i_date, i_percent );
+ msg_Dbg( p_input, "seek request to "I64Fd" (%d%%)", i_date, i_percent );
if( i_date < 0 && i_percent < 0 )
{
return;
i_index--;
}
- msg_Dbg( p_input, "seek got %lld (%d%%)",
+ msg_Dbg( p_input, "seek got "I64Fd" (%d%%)",
p_sys->index[i_index].i_time, (int)(100 * p_sys->index[i_index].i_position /p_input->stream.p_selected_area->i_size ) );
p_sys->in->setFilePointer( p_sys->index[i_index].i_position, seek_beginning );
if( i_pos < 0 ||
( i_pos > p_input->stream.p_selected_area->i_size && p_input->stream.p_selected_area->i_size != 0 ) )
{
- msg_Err( p_input, "seeking to wrong place (i_pos=%lld)", i_pos );
+ msg_Err( p_input, "seeking to wrong place (i_pos="I64Fd")", i_pos );
vlc_mutex_unlock( &p_input->stream.stream_lock );
mb_eof = VLC_TRUE;
return;
}
- msg_Dbg( p_input, "####################seek new=%lld old=%lld", i_pos, getFilePointer() );
+ msg_Dbg( p_input, "####################seek new="I64Fd" old="I64Fd,
+ i_pos, getFilePointer() );
if( p_input->stream.b_seekable &&
( /*p_input->stream.i_method == INPUT_METHOD_FILE ||*/ i_pos < i_last || i_pos - i_last > p_input->i_bufsize / 4 ) )
}
else
{
- msg_Err( p_input, "cannot seek or emulate seek to %lld from %lld", i_pos, i_last );
+ msg_Err( p_input, "cannot seek or emulate seek to "I64Fd" from "I64Fd,
+ i_pos, i_last );
mb_eof = VLC_TRUE;
}
}
}
ep->Up();
- msg_Dbg( p_input, " * added time=%lld pos=%lld track=%d bnum=%d",
- idx.i_time, idx.i_position, idx.i_track, idx.i_block_number );
+ msg_Dbg( p_input, " * added time="I64Fd" pos="I64Fd
+ " track=%d bnum=%d", idx.i_time, idx.i_position,
+ idx.i_track, idx.i_block_number );
p_sys->i_index++;
if( p_sys->i_index >= p_sys->i_index_max )
* ts.c: MPEG-II TS Muxer
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: ts.c,v 1.24 2003/08/04 22:49:02 fenrir Exp $
+ * $Id: ts.c,v 1.25 2003/08/10 14:21:16 gbazin Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Eric Petit <titer@videolan.org>
if( p_sys->i_bitrate_min > 0 && p_sys->i_bitrate_max > 0 &&
p_sys->i_bitrate_min > p_sys->i_bitrate_max )
{
- msg_Err( p_mux, "incompatible minimum and maximum bitrate, disabling bitrate control" );
+ msg_Err( p_mux, "incompatible minimum and maximum bitrate, "
+ "disabling bitrate control" );
p_sys->i_bitrate_min = 0;
p_sys->i_bitrate_max = 0;
}
if( p_sys->i_pcr_delay <= 0 )
{
msg_Err( p_mux,
- "invalid pcr delay (%lldms) reseting to 100ms",
+ "invalid pcr delay ("I64Fd"ms) reseting to 100ms",
p_sys->i_pcr_delay / 1000 );
p_sys->i_pcr_delay = 100000;
}
p_sys->i_pcr_soft_delay >= p_sys->i_pcr_delay )
{
msg_Err( p_mux,
- "invalid pcr-soft delay (%lldms) disabled",
+ "invalid pcr-soft delay ("I64Fd"ms) disabled",
p_sys->i_pcr_soft_delay / 1000 );
p_sys->i_pcr_soft_delay = 0;
}
}
- msg_Dbg( p_mux, "pcr_delay=%lld pcr_soft_delay=%lld",
+ msg_Dbg( p_mux, "pcr_delay="I64d" pcr_soft_delay="I64Fd,
p_sys->i_pcr_delay, p_sys->i_pcr_soft_delay );
+
/* for TS génération */
p_sys->i_pcr = 0;
p_sys->i_dts = 0;
break;
}
- if( ( p_sys->i_dts +p_sys->i_length ) - i_dts > 2000000 ||
+ if( ( p_sys->i_dts + p_sys->i_length ) - i_dts > 2000000 ||
( p_sys->i_dts + p_sys->i_length ) - i_dts < -2000000 )
{
- msg_Err( p_mux, "| buffer_dts - pcr_pts | > 2s empting pcr TS buffers" );
+ msg_Err( p_mux, "| buffer_dts - pcr_pts | > 2s ("I64Fd") empting "
+ "pcr TS buffers", p_sys->i_dts + p_sys->i_length - i_dts);
sout_BufferDelete( p_mux->p_sout, p_data );
break;
}
- msg_Dbg( p_mux,
- "dropping buffer size=%d dts=%lld pcr_dts=%lld",
- p_data->i_size, i_dts, p_sys->i_dts );
+ msg_Dbg( p_mux, "dropping buffer size=%d dts="I64Fd" pcr_dts="I64Fd
+ " diff="I64Fd, p_data->i_size, i_dts, p_sys->i_dts );
sout_BufferDelete( p_mux->p_sout, p_data );
}
* copy.c
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: copy.c,v 1.13 2003/08/08 16:50:27 gbazin Exp $
+ * $Id: copy.c,v 1.14 2003/08/10 14:21:16 gbazin Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Eric Petit <titer@videolan.org>
return;
}
- msg_Dbg( p_pack->p_fifo,
- "pes size:%d dts=%lld pts=%lld",
+ msg_Dbg( p_pack->p_fifo, "pes size:%d dts="I64Fd" pts="I64Fd,
p_pes->i_pes_size, p_pes->i_dts, p_pes->i_pts );
return;
}
- msg_Dbg( p_pack->p_fifo,
- "pes size:%d dts=%lld pts=%lld",
+ msg_Dbg( p_pack->p_fifo, "pes size:%d dts="I64Fd" pts="I64Fd,
p_pes->i_pes_size, p_pes->i_dts, p_pes->i_pts );
if( p_out == NULL &&