static int Open ( vlc_object_t * );
static void Close ( vlc_object_t * );
-vlc_module_begin();
- set_category( CAT_INPUT );
- set_subcategory( SUBCAT_INPUT_DEMUX );
- set_description( N_("Nuv demuxer") );
- set_capability( "demux", 145 );
- set_callbacks( Open, Close );
- add_shortcut( "nuv" );
-vlc_module_end();
+vlc_module_begin ()
+ set_category( CAT_INPUT )
+ set_subcategory( SUBCAT_INPUT_DEMUX )
+ set_description( N_("Nuv demuxer") )
+ set_capability( "demux", 145 )
+ set_callbacks( Open, Close )
+ add_shortcut( "nuv" )
+vlc_module_end ()
/*****************************************************************************
* Local prototypes
}
/* */
- p_data = stream_Block( p_demux->s, fh.i_length );
+ if( ( p_data = stream_Block( p_demux->s, fh.i_length ) ) == NULL )
+ return 0;
+
p_data->i_dts = (int64_t)fh.i_timecode * 1000;
p_data->i_pts = (fh.i_type == 'V') ? 0 : p_data->i_dts;
{
p_kfa_table = malloc( fh.i_length );
- if( p_seek_table == NULL )
+ if( p_kfa_table == NULL )
{
free( p_seek_table );
return VLC_ENOMEM;