Commit 42f39fd8 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

PS: reorder by ID

parent c128bd73
......@@ -96,32 +96,32 @@ static inline int ps_track_fill( ps_track_t *tk, ps_psm_t *p_psm, int i_id )
es_format_Init( &tk->fmt, AUDIO_ES, VLC_CODEC_A52 );
tk->i_skip = 4;
}
else if( (i_id&0xf0) == 0xb0 ) /* 0xb0 -> 0xbf */
else if( ( i_id&0xfc ) == 0x00 ) /* 0x00 -> 0x03 */
{
es_format_Init( &tk->fmt, AUDIO_ES, VLC_CODEC_TRUEHD );
tk->i_skip = 5;
es_format_Init( &tk->fmt, SPU_ES, VLC_CODEC_CVD );
}
else if( ( i_id&0xe0 ) == 0x20 ) /* 0x20 -> 0x3f */
else if( ( i_id&0xff ) == 0x10 ) /* 0x10 */
{
es_format_Init( &tk->fmt, SPU_ES, VLC_CODEC_SPU );
tk->i_skip = 1;
es_format_Init( &tk->fmt, SPU_ES, VLC_CODEC_TELETEXT );
}
else if( ( i_id&0xf0 ) == 0xa0 ) /* 0xa0 -> 0xaf */
else if( ( i_id&0xe0 ) == 0x20 ) /* 0x20 -> 0x3f */
{
es_format_Init( &tk->fmt, AUDIO_ES, VLC_CODEC_DVD_LPCM );
es_format_Init( &tk->fmt, SPU_ES, VLC_CODEC_SPU );
tk->i_skip = 1;
}
else if( ( i_id&0xff ) == 0x70 ) /* 0x70 */
{
es_format_Init( &tk->fmt, SPU_ES, VLC_CODEC_OGT );
}
else if( ( i_id&0xfc ) == 0x00 ) /* 0x00 -> 0x03 */
else if( ( i_id&0xf0 ) == 0xa0 ) /* 0xa0 -> 0xaf */
{
es_format_Init( &tk->fmt, SPU_ES, VLC_CODEC_CVD );
es_format_Init( &tk->fmt, AUDIO_ES, VLC_CODEC_DVD_LPCM );
tk->i_skip = 1;
}
else if( ( i_id&0xff ) == 0x10 ) /* 0x10 */
else if( ( i_id&0xf0 ) == 0xb0 ) /* 0xb0 -> 0xbf */
{
es_format_Init( &tk->fmt, SPU_ES, VLC_CODEC_TELETEXT );
es_format_Init( &tk->fmt, AUDIO_ES, VLC_CODEC_TRUEHD );
tk->i_skip = 5;
}
else
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment