Commit 4207d2fe authored by David Schleef's avatar David Schleef
Browse files

gst/matroska/matroska-mux.c: Add Dirac fourcc.

Original commit message from CVS:
* gst/matroska/matroska-mux.c: Add Dirac fourcc.
parent 91ab2895
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>
......
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment