diff --git a/gst-libs/gst/riff/riff-media.c b/gst-libs/gst/riff/riff-media.c index 9340b2c5df..40b2bf628c 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'),