]> git.sesse.net Git - vlc/commitdiff
PS: add rarer type-id
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 20 Jul 2014 21:01:24 +0000 (23:01 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 20 Jul 2014 21:01:43 +0000 (23:01 +0200)
modules/demux/ps.h

index c36bdcdb0b585418628b1e27968ccc1d60cc7ade..962a60627158d18f7e9bc89b87939ceafca9456d 100644 (file)
@@ -174,10 +174,16 @@ static inline int ps_track_fill( ps_track_t *tk, ps_psm_t *p_psm, int i_id )
         {
             es_format_Init( &tk->fmt, VIDEO_ES, VLC_CODEC_MP4V );
         }
-        else if( (i_id&0xf0) == 0xe0 && i_type == 0x02 )
+        else if( (i_id&0xf0) == 0xe0 && i_type == 0x01 ||
+                 (i_id&0xf0) == 0xe0 && i_type == 0x02 )
         {
             es_format_Init( &tk->fmt, VIDEO_ES, VLC_CODEC_MPGV );
         }
+        else if( ( i_id&0xe0 ) == 0xc0 && i_type == 0x03 ||
+                 ( i_id&0xe0 ) == 0xc0 && i_type == 0x04 )
+        {
+            es_format_Init( &tk->fmt, AUDIO_ES, VLC_CODEC_MPGA );
+        }
         else if( ( i_id&0xe0 ) == 0xc0 && i_type == 0x0f )
         {
             es_format_Init( &tk->fmt, AUDIO_ES, VLC_CODEC_MP4A );
@@ -186,10 +192,6 @@ 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_MP4A );
         }
-        else if( ( i_id&0xe0 ) == 0xc0 && i_type == 0x03 )
-        {
-            es_format_Init( &tk->fmt, AUDIO_ES, VLC_CODEC_MPGA );
-        }
 
         if( tk->fmt.i_cat == UNKNOWN_ES && ( i_id&0xf0 ) == 0xe0 )
         {