]> git.sesse.net Git - vlc/commitdiff
Fixed E-AC3 in ATSC TS stream.
authorLaurent Aimar <fenrir@videolan.org>
Thu, 1 Oct 2009 19:16:32 +0000 (21:16 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 3 Oct 2009 16:32:39 +0000 (18:32 +0200)
modules/demux/ts.c

index 31e05c00e8486c544230518d19903b9763d907ac..74e5b51602c0c6ac7d52a033ae334c63a0cfe932 100644 (file)
@@ -2080,6 +2080,9 @@ static int PIDFillFormat( ts_pid_t *pid, int i_stream_type )
     case 0x85:  /* DTS (audio) */
         es_format_Init( fmt, AUDIO_ES, VLC_CODEC_DTS );
         break;
+    case 0x87: /* E-AC3 */
+        es_format_Init( fmt, AUDIO_ES, VLC_CODEC_EAC3 );
+        break;
 
     case 0x91:  /* A52 vls (audio) */
         es_format_Init( fmt, AUDIO_ES, VLC_FOURCC( 'a', '5', '2', 'b' ) );
@@ -3685,7 +3688,6 @@ static void PMTSetupEsHDMV( demux_t *p_demux, ts_pid_t *pid,
         break;
 
     case 0x84: /* E-AC3 */
-    case 0x87: /* E-AC3 */
     case 0xA1: /* Secondary E-AC3 */
         p_fmt->i_cat = AUDIO_ES;
         p_fmt->i_codec = VLC_CODEC_EAC3;