gst/matroska/matroska-mux.c: Add Dirac fourcc.
authorDavid Schleef <ds@schleef.org>
Wed, 15 Nov 2006 00:12:19 +0000 (00:12 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 15 Nov 2006 00:12:19 +0000 (00:12 +0000)
Original commit message from CVS:
* gst/matroska/matroska-mux.c: Add Dirac fourcc.

ChangeLog
gst/matroska/matroska-mux.c

index 5539b59..2f5b7ec 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-11-14  David Schleef  <ds@schleef.org>
+
+       * gst/matroska/matroska-mux.c: Add Dirac fourcc.
+
 2006-11-14  Tim-Philipp Müller  <tim at centricular dot net>
 
        Patch by: Sergey Scobich  <sergey.scobich at gmail com>
index 473e2ba..8b62c30 100644 (file)
@@ -76,6 +76,8 @@ static GstStaticPadTemplate videosink_templ =
         "image/jpeg, "
         COMMON_VIDEO_CAPS "; "
         "video/x-theora; "
+        "video/x-dirac, "
+        COMMON_VIDEO_CAPS "; "
         "video/x-raw-yuv, "
         "format = (fourcc) { YUY2, I420 }, " COMMON_VIDEO_CAPS)
     );
@@ -497,7 +499,8 @@ skip_details:
       ||!strcmp (mimetype, "video/x-huffyuv")
       || !strcmp (mimetype, "video/x-divx")
       || !strcmp (mimetype, "video/x-dv")
-      || !strcmp (mimetype, "video/x-h263")) {
+      || !strcmp (mimetype, "video/x-h263")
+      || !strcmp (mimetype, "video/x-dirac")) {
     BITMAPINFOHEADER *bih;
     const GValue *codec_data;
     gint size = sizeof (BITMAPINFOHEADER);
@@ -534,6 +537,8 @@ skip_details:
           GST_WRITE_UINT32_LE (&bih->bi_compression, GST_STR_FOURCC ("DX50"));
           break;
       }
+    } else if (!strcmp (mimetype, "video/x-dirac")) {
+      GST_WRITE_UINT32_LE (&bih->bi_compression, GST_STR_FOURCC ("drac"));
     }
 
     /* process codec private/initialization data, if any */