From 088aebfda90f328f4c103cd20224db4f2ff021dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 16 Nov 2016 20:48:28 +0200 Subject: [PATCH] riff: Extract bpp from the strf for vnmc Needed for avdec_vnmc to work. --- gst-libs/gst/riff/riff-media.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/riff/riff-media.c b/gst-libs/gst/riff/riff-media.c index 10573b3..31d6d1b 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; -- 2.7.4