tsdemux: add support for LPCM with stream_type = 0x83
authorMichael Olbrich <m.olbrich@pengutronix.de>
Fri, 29 Apr 2016 12:42:34 +0000 (14:42 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 25 Jul 2016 10:38:29 +0000 (13:38 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=765807

gst/mpegtsdemux/gstmpegdefs.h
gst/mpegtsdemux/tsdemux.c

index e179f7d..5947d71 100644 (file)
@@ -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
index 91d3776..cd7fc5a 100644 (file)
@@ -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");