- es_format_Init( &tk->fmt, SPU_ES, VLC_FOURCC('c','v','d',' ') );
+ es_format_Init( &tk->fmt, SPU_ES, VLC_CODEC_CVD );
+ }
+ else if( ( i_id&0xff ) == 0x10 )
+ {
+ es_format_Init( &tk->fmt, SPU_ES, VLC_CODEC_TELETEXT );
+ }
+ else
+ {
+ es_format_Init( &tk->fmt, UNKNOWN_ES, 0 );
+ return VLC_EGENERIC;
+ }
+ }
+ else if( (i_id&0xff00) == 0xfd00 )
+ {
+ uint8_t i_sub_id = i_id & 0xff;
+ if( i_sub_id >= 0x55 && i_sub_id <= 0x5f )
+ {
+ es_format_Init( &tk->fmt, VIDEO_ES, VLC_CODEC_VC1 );
+ }
+ else
+ {
+ es_format_Init( &tk->fmt, UNKNOWN_ES, 0 );
+ return VLC_EGENERIC;
+ }
+ }
+ else if( (i_id&0xff00) == 0xa000 )
+ {
+ uint8_t i_sub_id = i_id & 0x07;
+ if( i_sub_id == 0 )
+ {
+ es_format_Init( &tk->fmt, AUDIO_ES, VLC_CODEC_DVDA_LPCM );
+ tk->i_skip = 1;
+ }
+ else if( i_sub_id == 1 )
+ {
+ es_format_Init( &tk->fmt, AUDIO_ES, VLC_CODEC_MLP );
+ tk->i_skip = -1; /* It's a hack for variable skip value */