From 35d147930d5ab1c3549e4413202954f21a7db0fa Mon Sep 17 00:00:00 2001 From: Wonchul Lee Date: Mon, 29 Aug 2016 11:40:54 +0900 Subject: [PATCH] tsdemux: Support ATSC EAC3 EAC3 bit streams shall be identified with a stream_type value of 0x87 when transmitted as PES streams conforming to ATSC-published standards. It is specified in ATSC Standard A/52. https://bugzilla.gnome.org/show_bug.cgi?id=770528 --- gst/mpegtsdemux/gstmpegdefs.h | 1 + gst/mpegtsdemux/tsdemux.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/gst/mpegtsdemux/gstmpegdefs.h b/gst/mpegtsdemux/gstmpegdefs.h index 5947d71d26..f0a225b0cc 100644 --- a/gst/mpegtsdemux/gstmpegdefs.h +++ b/gst/mpegtsdemux/gstmpegdefs.h @@ -48,6 +48,7 @@ /* private stream types */ #define ST_PS_VIDEO_MPEG2_DCII 0x80 #define ST_PS_AUDIO_AC3 0x81 +#define ST_PS_AUDIO_EAC3 0x87 #define ST_PS_AUDIO_LPCM2 0x83 #define ST_PS_AUDIO_DTS 0x8a #define ST_PS_AUDIO_LPCM 0x8b diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c index 7a396cd875..0ac95bd7dd 100644 --- a/gst/mpegtsdemux/tsdemux.c +++ b/gst/mpegtsdemux/tsdemux.c @@ -1506,6 +1506,11 @@ create_pad_for_stream (MpegTSBase * base, MpegTSBaseStream * bstream, is_audio = TRUE; caps = gst_caps_new_empty_simple ("audio/x-ac3"); break; + case ST_PS_AUDIO_EAC3: + /* ATSC_ENHANCED_AC3 */ + is_audio = TRUE; + caps = gst_caps_new_empty_simple ("audio/x-eac3"); + break; case ST_PS_AUDIO_LPCM2: is_audio = TRUE; caps = gst_caps_new_empty_simple ("audio/x-private2-lpcm");