From 7faf92511ac920380b94a4d91877f141064dbe39 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 24 Jan 2011 18:27:30 +0100 Subject: [PATCH] riff: Add support for video/x-camstudio --- gst-libs/gst/riff/riff-media.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/gst-libs/gst/riff/riff-media.c b/gst-libs/gst/riff/riff-media.c index 9340b2c..40b2bf6 100644 --- a/gst-libs/gst/riff/riff-media.c +++ b/gst-libs/gst/riff/riff-media.c @@ -717,6 +717,22 @@ gst_riff_create_video_caps (guint32 codec_fcc, break; } + case GST_MAKE_FOURCC ('C', 'S', 'C', 'D'): + { + if (strf) { + gint depth = (strf->bit_cnt != 0) ? (gint) strf->bit_cnt : 24; + + caps = gst_caps_new_simple ("video/x-camstudio", "depth", G_TYPE_INT, + depth, NULL); + } else { + /* template caps */ + caps = gst_caps_new_simple ("video/x-camstudio", NULL); + } + if (codec_name) + *codec_name = g_strdup ("Camstudio"); + break; + } + case GST_MAKE_FOURCC ('V', 'C', 'R', '1'): caps = gst_caps_new_simple ("video/x-ati-vcr", "vcrversion", G_TYPE_INT, 1, NULL); @@ -1737,6 +1753,7 @@ gst_riff_create_video_template_caps (void) GST_MAKE_FOURCC ('A', 'S', 'V', '1'), GST_MAKE_FOURCC ('A', 'S', 'V', '2'), GST_MAKE_FOURCC ('C', 'L', 'J', 'R'), + GST_MAKE_FOURCC ('C', 'S', 'C', 'D'), GST_MAKE_FOURCC ('C', 'Y', 'U', 'V'), GST_MAKE_FOURCC ('D', 'I', 'B', ' '), GST_MAKE_FOURCC ('D', 'I', 'V', '3'), -- 2.7.4