/*****************************************************************************
* Open
*****************************************************************************/
-int E_(OpenMux)( vlc_object_t *p_this )
+int OpenMux( vlc_object_t *p_this )
{
AVOutputFormat *file_oformat;
sout_mux_t *p_mux = (sout_mux_t*)p_this;
/* Should we call it only once ? */
av_register_all();
- av_log_set_callback( E_(LibavcodecCallback) );
+ av_log_set_callback( LibavcodecCallback );
config_ChainParse( p_mux, "ffmpeg-", ppsz_mux_options, p_mux->p_cfg );
/*****************************************************************************
* Close
*****************************************************************************/
-void E_(CloseMux)( vlc_object_t *p_this )
+void CloseMux( vlc_object_t *p_this )
{
sout_mux_t *p_mux = (sout_mux_t*)p_this;
sout_mux_sys_t *p_sys = p_mux->p_sys;
msg_Dbg( p_mux, "adding input" );
- if( !E_(GetFfmpegCodec)( p_input->p_fmt->i_codec, 0, &i_codec_id, 0 ) )
+ if( !GetFfmpegCodec( p_input->p_fmt->i_codec, 0, &i_codec_id, 0 ) )
{
msg_Dbg( p_mux, "couldn't find codec for fourcc '%4.4s'",
(char *)&p_input->p_fmt->i_codec );
if( p_data->i_pts > 0 )
pkt.pts = p_data->i_pts * p_stream->time_base.den /
- I64C(1000000) / p_stream->time_base.num;
+ INT64_C(1000000) / p_stream->time_base.num;
if( p_data->i_dts > 0 )
pkt.dts = p_data->i_dts * p_stream->time_base.den /
- I64C(1000000) / p_stream->time_base.num;
+ INT64_C(1000000) / p_stream->time_base.num;
/* this is another hack to prevent libavformat from triggering the "non monotone timestamps" check in avformat/utils.c */
p_stream->cur_dts = ( p_data->i_dts * p_stream->time_base.den /
- I64C(1000000) / p_stream->time_base.num ) - 1;
+ INT64_C(1000000) / p_stream->time_base.num ) - 1;
if( av_write_frame( p_sys->oc, &pkt ) < 0 )
{
- msg_Err( p_mux, "could not write frame (pts: "I64Fd", dts: "I64Fd") "
- "(pkt pts: "I64Fd", dts: "I64Fd")",
+ msg_Err( p_mux, "could not write frame (pts: %"PRId64", dts: %"PRId64") "
+ "(pkt pts: %"PRId64", dts: %"PRId64")",
p_data->i_pts, p_data->i_dts, pkt.pts, pkt.dts );
block_Release( p_data );
return VLC_EGENERIC;
int64_t i_absolute;
#ifdef AVFORMAT_DEBUG
- msg_Dbg( p_mux, "IOSeek offset: "I64Fd", whence: %i", offset, whence );
+ msg_Dbg( p_mux, "IOSeek offset: %"PRId64", whence: %i", offset, whence );
#endif
switch( whence )