summaryrefslogtreecommitdiffstats
path: root/gst/matroska/matroska-mux.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/matroska/matroska-mux.c')
-rw-r--r--gst/matroska/matroska-mux.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c
index 111f5c5f..d1794e52 100644
--- a/gst/matroska/matroska-mux.c
+++ b/gst/matroska/matroska-mux.c
@@ -592,8 +592,7 @@ 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-dirac")) {
+ || !strcmp (mimetype, "video/x-h263")) {
BITMAPINFOHEADER *bih;
const GValue *codec_data;
gint size = sizeof (BITMAPINFOHEADER);
@@ -630,8 +629,6 @@ 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 */
@@ -701,6 +698,10 @@ skip_details:
return FALSE;
}
return TRUE;
+ } else if (!strcmp (mimetype, "video/x-dirac")) {
+ context->codec_id = g_strdup (GST_MATROSKA_CODEC_ID_VIDEO_DIRAC);
+
+ return TRUE;
} else if (!strcmp (mimetype, "video/mpeg")) {
gint mpegversion;