riff: add bpp to caps for msvideo

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=686298
This commit is contained in:
Wim Taymans 2012-10-22 10:30:16 +02:00
parent a5ef81e05e
commit 3787b6d05e

View file

@ -562,6 +562,10 @@ gst_riff_create_video_caps (guint32 codec_fcc,
case GST_MAKE_FOURCC ('w', 'h', 'a', 'm'):
caps = gst_caps_new_simple ("video/x-msvideocodec",
"msvideoversion", G_TYPE_INT, 1, NULL);
if (strf) {
gst_caps_set_simple (caps, "bpp",
G_TYPE_INT, (int) strf->bit_cnt, NULL);
}
if (codec_name)
*codec_name = g_strdup ("MS video v1");
palette = strf_data;