summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorWonchul Lee <wonchul.lee@collabora.com>2016-08-29 11:40:54 +0900
committerOlivier CrĂȘte <olivier.crete@collabora.com>2016-09-01 17:56:41 -0400
commit35d147930d5ab1c3549e4413202954f21a7db0fa (patch)
treefe279f963f63155da310ae214822b2d4668b85ac /gst
parentfcea134ec40385000d87f6de1fa9e4b49ce49bd6 (diff)
downloadgstreamer-plugins-bad-35d147930d5ab1c3549e4413202954f21a7db0fa.tar.gz
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
Diffstat (limited to 'gst')
-rw-r--r--gst/mpegtsdemux/gstmpegdefs.h1
-rw-r--r--gst/mpegtsdemux/tsdemux.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/gst/mpegtsdemux/gstmpegdefs.h b/gst/mpegtsdemux/gstmpegdefs.h
index 5947d71d2..f0a225b0c 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 7a396cd87..0ac95bd7d 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");