*****************************************************************************/
vlc_module_begin();
set_description( _("MPEG audio layer I/II/III parser") );
-#if defined(SYS_DARWIN)
- set_capability( "decoder", 5 );
+ set_category( CAT_INPUT );
+ set_subcategory( SUBCAT_INPUT_ACODEC );
+#if defined(SYS_DARWIN) || defined(UNDER_CE)
+ set_capability( "decoder", 5 );
#else
set_capability( "decoder", 100 );
#endif
/* Set output properties */
p_dec->fmt_out.i_cat = AUDIO_ES;
p_dec->fmt_out.i_codec = VLC_FOURCC('m','p','g','a');
+ p_dec->fmt_out.audio.i_rate = 0; /* So end_date gets initialized */
/* Set callback */
p_dec->pf_decode_audio = (aout_buffer_t *(*)(decoder_t *, block_t **))
return NULL;
}
- if( (*pp_block)->i_flags&BLOCK_FLAG_DISCONTINUITY )
+ if( (*pp_block)->i_flags&(BLOCK_FLAG_DISCONTINUITY|BLOCK_FLAG_CORRUPTED) )
{
p_sys->i_state = STATE_NOSYNC;
}
p_dec->fmt_out.audio.i_physical_channels =
p_sys->i_channels_conf & AOUT_CHAN_PHYSMASK;
- p_dec->fmt_out.i_bitrate = p_sys->i_bit_rate;
+ p_dec->fmt_out.i_bitrate = p_sys->i_bit_rate * 1000;
if( p_sys->b_packetizer )
{