#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-
-#include <vlc/vlc.h>
-#include <vlc_plugin.h>
#include <assert.h>
#include <stdint.h>
+#include <vlc_common.h>
+#include <vlc_plugin.h>
+#include <vlc_input.h>
+
#include "vlc_vout.h"
#include "vlc_bits.h"
#include "vlc_codec.h"
"your subtitles don't appear.")
vlc_module_begin();
- set_description( _("Teletext subtitles decoder") );
+ set_description( N_("Teletext subtitles decoder") );
set_shortname( "Teletext" );
set_capability( "decoder", 50 );
set_category( CAT_INPUT );
p_dec->pf_decode_sub = Decode;
p_sys = p_dec->p_sys = malloc( sizeof(decoder_sys_t) );
if( p_sys == NULL )
- {
- msg_Err( p_dec, "out of memory" );
return VLC_ENOMEM;
- }
memset( p_sys, 0, sizeof(decoder_sys_t) );
char psz_line[256];
int i, total;
- if( pp_block == NULL || *pp_block == NULL ) return NULL;
+ if( pp_block == NULL || *pp_block == NULL )
+ return NULL;
p_block = *pp_block;
+ if( p_block->i_rate != 0 )
+ p_block->i_length = p_block->i_length * p_block->i_rate / INPUT_RATE_DEFAULT;
*pp_block = NULL;
dbg((p_dec, "start of telx packet with header %2x\n",