riff: add bpp to caps for msvideo
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 22 Oct 2012 08:30:16 +0000 (10:30 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 22 Oct 2012 08:30:16 +0000 (10:30 +0200)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=686298

gst-libs/gst/riff/riff-media.c

index 41749ac..71c6e1e 100644 (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;