summaryrefslogtreecommitdiff
path: root/gst/mpegtsdemux
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2016-04-29 14:42:34 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-07-25 13:38:29 +0300
commit48c5cc1b1b5096ccff4a25c98e14117c6e5e4d25 (patch)
tree910810e12484d3361f537c4063d55689e4ccddcd /gst/mpegtsdemux
parentaa1a663c8a7e062ac3c216f368253c72cd1b9ce0 (diff)
downloadgstreamer-plugins-bad-48c5cc1b1b5096ccff4a25c98e14117c6e5e4d25.tar.gz
tsdemux: add support for LPCM with stream_type = 0x83
https://bugzilla.gnome.org/show_bug.cgi?id=765807
Diffstat (limited to 'gst/mpegtsdemux')
-rw-r--r--gst/mpegtsdemux/gstmpegdefs.h1
-rw-r--r--gst/mpegtsdemux/tsdemux.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/gst/mpegtsdemux/gstmpegdefs.h b/gst/mpegtsdemux/gstmpegdefs.h
index e179f7d8a..5947d71d2 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_LPCM2 0x83
#define ST_PS_AUDIO_DTS 0x8a
#define ST_PS_AUDIO_LPCM 0x8b
#define ST_PS_DVD_SUBPICTURE 0xff
diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c
index 91d37763a..cd7fc5aed 100644
--- a/gst/mpegtsdemux/tsdemux.c
+++ b/gst/mpegtsdemux/tsdemux.c
@@ -1505,6 +1505,10 @@ 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_LPCM2:
+ is_audio = TRUE;
+ caps = gst_caps_new_empty_simple ("audio/x-private2-lpcm");
+ break;
case ST_PS_AUDIO_DTS:
is_audio = TRUE;
caps = gst_caps_new_empty_simple ("audio/x-dts");