summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-11-16 20:48:28 +0200
committerTim-Philipp Müller <tim@centricular.com>2016-11-19 22:31:00 +0000
commit8892d6a81f5cb4b0c6f5b29343f92f6f1a682d4c (patch)
treed893acca60d088ef7c60c55ec49c229a54c15086
parent17fffbee4076b00f6f1acadddacb0dfcc8067ec5 (diff)
downloadgstreamer-plugins-base-8892d6a81f5cb4b0c6f5b29343f92f6f1a682d4c.tar.gz
riff: Extract bpp from the strf for vnmc
Needed for avdec_vnmc to work.
-rw-r--r--gst-libs/gst/riff/riff-media.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst-libs/gst/riff/riff-media.c b/gst-libs/gst/riff/riff-media.c
index 188360a8b..ea1890c8e 100644
--- a/gst-libs/gst/riff/riff-media.c
+++ b/gst-libs/gst/riff/riff-media.c
@@ -824,6 +824,8 @@ gst_riff_create_video_caps (guint32 codec_fcc,
case GST_MAKE_FOURCC ('V', 'M', 'n', 'c'):
caps = gst_caps_new_simple ("video/x-vmnc",
"version", G_TYPE_INT, 1, NULL);
+ if (strf && strf->bit_cnt != 0)
+ gst_caps_set_simple (caps, "bpp", G_TYPE_INT, strf->bit_cnt, NULL);
if (codec_name)
*codec_name = g_strdup ("VMWare NC Video");
break;