summaryrefslogtreecommitdiffstats
path: root/gst-libs
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2004-04-11 21:36:45 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2004-04-11 21:36:45 +0000
commit6f9e9727f5542c3de94089539a0bcbc18faf4648 (patch)
treecd7d616d7d5967e4fbb9e518a577ca643b3de935 /gst-libs
parentb1bd867b5e4a22501fb2c6fdff6e157c58da95a1 (diff)
downloadgst-plugins-bad-6f9e9727f5542c3de94089539a0bcbc18faf4648.tar.gz
gst-plugins-bad-6f9e9727f5542c3de94089539a0bcbc18faf4648.tar.bz2
gst-plugins-bad-6f9e9727f5542c3de94089539a0bcbc18faf4648.zip
gst-libs/gst/riff/riff-media.c: Add MS video v1.
Original commit message from CVS: * gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps), (gst_riff_create_video_template_caps): Add MS video v1. * gst/avi/gstavidemux.c: (gst_avi_demux_stream_index), (gst_avi_demux_stream_data): Add support for "rec-list" chunks.
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/riff/riff-media.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gst-libs/gst/riff/riff-media.c b/gst-libs/gst/riff/riff-media.c
index 683ec624..1d4c6dbf 100644
--- a/gst-libs/gst/riff/riff-media.c
+++ b/gst-libs/gst/riff/riff-media.c
@@ -208,6 +208,18 @@ gst_riff_create_video_caps (guint32 codec_fcc,
*codec_name = g_strdup ("Cinepak video");
break;
+ case GST_MAKE_FOURCC ('M', 'S', 'V', 'C'):
+ case GST_MAKE_FOURCC ('m', 's', 'v', 'c'):
+ case GST_MAKE_FOURCC ('C', 'R', 'A', 'M'):
+ case GST_MAKE_FOURCC ('c', 'r', 'a', 'm'):
+ case GST_MAKE_FOURCC ('W', 'H', 'A', 'M'):
+ case GST_MAKE_FOURCC ('w', 'h', 'a', 'm'):
+ caps = gst_caps_new_simple ("video/x-msvideocodec",
+ "msvideoversion", G_TYPE_INT, 1, NULL);
+ if (codec_name)
+ *codec_name = g_strdup ("MS video v1");
+ break;
+
default:
GST_WARNING ("Unkown video fourcc " GST_FOURCC_FORMAT,
GST_FOURCC_ARGS (codec_fcc));
@@ -380,6 +392,8 @@ gst_riff_create_video_template_caps (void)
GST_MAKE_FOURCC ('D', 'I', 'V', 'X'),
GST_MAKE_FOURCC ('X', 'V', 'I', 'D'),
GST_MAKE_FOURCC ('3', 'I', 'V', '1'),
+ GST_MAKE_FOURCC ('c', 'v', 'i', 'd'),
+ GST_MAKE_FOURCC ('m', 's', 'v', 'c'),
/* FILL ME */
0
};