summaryrefslogtreecommitdiffstats
path: root/gst/matroska/matroska-mux.c
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2006-11-15 00:12:19 +0000
committerDavid Schleef <ds@schleef.org>2006-11-15 00:12:19 +0000
commit4207d2fe745c60acbff1ab54205ac280db70601a (patch)
tree125d8ab1682fad61316220c3c1d8d9529eb76351 /gst/matroska/matroska-mux.c
parent91ab2895d0631228d169a6d833ec51a6706357ba (diff)
gst/matroska/matroska-mux.c: Add Dirac fourcc.
Original commit message from CVS: * gst/matroska/matroska-mux.c: Add Dirac fourcc.
Diffstat (limited to 'gst/matroska/matroska-mux.c')
-rw-r--r--gst/matroska/matroska-mux.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c
index 473e2ba3..8b62c301 100644
--- a/gst/matroska/matroska-mux.c
+++ b/gst/matroska/matroska-mux.c
@@ -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 */