]> git.sesse.net Git - vlc/commitdiff
PS: reorder by ID
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 10 Aug 2014 00:17:28 +0000 (02:17 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 10 Aug 2014 06:52:53 +0000 (08:52 +0200)
modules/demux/ps.h

index 7053afe5d318800996e179741b25aefe8f3202be..1377428e43b7e328cc20cb897c7ae126f500f83c 100644 (file)
@@ -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
         {