static int OpenDecoder ( vlc_object_t * );
static void CloseDecoder ( vlc_object_t * );
-vlc_module_begin();
- set_category( CAT_INPUT );
- set_subcategory( SUBCAT_INPUT_VCODEC );
- set_description( N_("Schroedinger video decoder") );
- set_capability( "decoder", 200 );
- set_callbacks( OpenDecoder, CloseDecoder );
- add_shortcut( "schroedinger" );
-vlc_module_end();
+vlc_module_begin ()
+ set_category( CAT_INPUT )
+ set_subcategory( SUBCAT_INPUT_VCODEC )
+ set_description( N_("Schroedinger video decoder") )
+ set_capability( "decoder", 200 )
+ set_callbacks( OpenDecoder, CloseDecoder )
+ add_shortcut( "schroedinger" )
+vlc_module_end ()
/*****************************************************************************
* Local prototypes
{
decoder_sys_t *p_sys = p_dec->p_sys;
uint32_t u_pnum;
- mtime_t i_pts;
u_pnum = GetDWBE( p_block->p_buffer + i_pupos + 13 );
- i_pts = p_block->i_pts > 0 ? p_block->i_pts : p_block->i_dts;
for( int i=0; i<PTS_TLB_SIZE; i++ ) {
if( p_sys->pts_tlb[i].i_empty ) {
p_sys->pts_tlb[i].u_pnum = u_pnum;
- p_sys->pts_tlb[i].i_pts = i_pts;
+ p_sys->pts_tlb[i].i_pts = p_block->i_pts;
p_sys->pts_tlb[i].i_empty = 0;
return;
}
msg_Err( p_dec, "Could not store PTS %"PRId64" for picture %u",
- i_pts, u_pnum );
+ p_block->i_pts, u_pnum );
}
/*****************************************************************************
if( !p_free )
return;
- p_free->p_dec->pf_vout_buffer_del( p_free->p_dec, p_free->p_pic );
+ decoder_DeletePicture( p_free->p_dec, p_free->p_pic );
free(p_free);
(void)frame;
}
if( !p_schroframe )
return NULL;
- p_pic = p_dec->pf_vout_buffer_new( p_dec );
+ p_pic = decoder_NewPicture( p_dec );
if( !p_pic )
return NULL;