qtmux: Add direct dirac mapping
authorDavid Schleef <ds@schleef.org>
Thu, 7 Jul 2011 00:18:05 +0000 (17:18 -0700)
committerDavid Schleef <ds@schleef.org>
Thu, 7 Jul 2011 18:27:52 +0000 (11:27 -0700)
gst/isomp4/gstqtmux.c
gst/isomp4/gstqtmuxmap.c

index 8d2ed3e..33ea5ca 100644 (file)
@@ -3120,6 +3120,9 @@ gst_qt_mux_video_sink_set_caps (GstPad * pad, GstCaps * caps)
   } else if (strcmp (mimetype, "video/x-vp8") == 0) {
     entry.fourcc = FOURCC_VP80;
     sync = FALSE;
+  } else if (strcmp (mimetype, "video/x-dirac") == 0) {
+    entry.fourcc = FOURCC_drac;
+    qtpad->have_dts = TRUE;
   } else if (strcmp (mimetype, "video/x-qt-part") == 0) {
     guint32 fourcc;
 
index c3a0295..7872f0c 100644 (file)
@@ -168,6 +168,8 @@ GstQTMuxFormatProp gst_qt_mux_format_list[] = {
             "image/jpeg, "
             COMMON_VIDEO_CAPS_NO_FRAMERATE "; "
             "video/x-vp8, "
+            COMMON_VIDEO_CAPS "; "
+            "video/x-dirac, "
             COMMON_VIDEO_CAPS "; " "video/x-qt-part, " COMMON_VIDEO_CAPS),
         GST_STATIC_CAPS (PCM_CAPS_FULL "; "
             MP3_CAPS " ; "