*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <stdio.h>
-#include <stdlib.h>
#define NDEBUG 1
#include <assert.h>
#include <math.h>
-#include <vlc/vlc.h>
-#include <vlc/sout.h>
-#include <vlc/input.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <vlc_common.h>
+#include <vlc_plugin.h>
+#include <vlc_sout.h>
+#include <vlc_input.h>
#include "transrate.h"
vlc_module_begin();
set_category( CAT_SOUT );
set_subcategory( SUBCAT_SOUT_STREAM );
- set_description( _("MPEG2 video transrating stream output") );
+ set_description( N_("MPEG2 video transrating stream output") );
set_capability( "sout stream", 50 );
add_shortcut( "transrate" );
set_callbacks( Open, Close );
if( p_sys->i_shaping_delay <= 0 )
{
msg_Err( p_stream,
- "invalid shaping ("I64Fd"ms) reseting to 500ms",
+ "invalid shaping (%"PRId64"ms) reseting to 500ms",
p_sys->i_shaping_delay / 1000 );
p_sys->i_shaping_delay = 500000;
}
p_sys->b_mpeg4_matrix = 1;
}
- msg_Dbg( p_stream, "codec video %dkb/s max gop="I64Fd"us",
+ msg_Dbg( p_stream, "codec video %dkb/s max gop=%"PRId64"us",
p_sys->i_vbitrate / 1024, p_sys->i_shaping_delay );
if( !p_sys->p_out )
/* open output stream */
id->id = p_sys->p_out->pf_add( p_sys->p_out, p_fmt );
- id->b_transrate = VLC_TRUE;
+ id->b_transrate = true;
}
else
{
msg_Dbg( p_stream, "not transrating a stream (fcc=`%4.4s')", (char*)&p_fmt->i_codec );
id->id = p_sys->p_out->pf_add( p_sys->p_out, p_fmt );
- id->b_transrate = VLC_FALSE;
+ id->b_transrate = false;
if( id->id == NULL )
{