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

Original commit message from CVS:
* gst/matroska/matroska-mux.c: Add Dirac fourcc.
This commit is contained in:
David Schleef 2006-11-15 00:12:19 +00:00
parent 91ab2895d0
commit 4207d2fe74
2 changed files with 10 additions and 1 deletions

View file

@ -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>

View 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 */