mpegtsdemux: Add mapping for HDV private streams
authorEdward Hervey <bilboed@bilboed.com>
Mon, 25 May 2009 13:21:12 +0000 (15:21 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 25 May 2009 16:32:26 +0000 (18:32 +0200)
gst/mpegdemux/gstmpegdefs.h
gst/mpegdemux/gstmpegtsdemux.c

index 7f38f4d..d63667d 100644 (file)
 #define ST_PS_AUDIO_AC3                        0x81
 #define ST_PS_AUDIO_DTS                        0x8a
 #define ST_PS_AUDIO_LPCM               0x8b
+#define ST_HDV_PRIVATE_A0              0xa0
+#define ST_HDV_PRIVATE_A1              0xa1
 #define ST_PS_DVD_SUBPICTURE            0xff
 
 /* Un-official time-code stream */
index 6438e88..a4d32e3 100644 (file)
@@ -620,6 +620,16 @@ gst_mpegts_demux_fill_stream (GstMpegTSStream * stream, guint8 id,
         caps = gst_caps_new_simple ("private/teletext", NULL);
       }
       break;
+    case ST_HDV_PRIVATE_A0:
+      template = klass->private_template;
+      name = g_strdup_printf ("private_%04x", stream->PID);
+      caps = gst_caps_new_simple ("private/hdv-a0", NULL);
+      break;
+    case ST_HDV_PRIVATE_A1:
+      template = klass->private_template;
+      name = g_strdup_printf ("private_%04x", stream->PID);
+      caps = gst_caps_new_simple ("private/hdv-a1", NULL);
+      break;
     case ST_PRIVATE_SECTIONS:
     case ST_MHEG:
     case ST_DSMCC: