From b8739a89b0ca2d66c267842cab24e336f7a5c57b Mon Sep 17 00:00:00 2001 From: Wangfei Date: Mon, 1 Jul 2019 17:02:33 +0800 Subject: [PATCH] libs: encoder: Add MB ratecontrol mode to get its string --- gst-libs/gst/vaapi/gstvaapiutils.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst-libs/gst/vaapi/gstvaapiutils.c b/gst-libs/gst/vaapi/gstvaapiutils.c index 49fb652..736fafa 100644 --- a/gst-libs/gst/vaapi/gstvaapiutils.c +++ b/gst-libs/gst/vaapi/gstvaapiutils.c @@ -338,6 +338,10 @@ string_of_VARateControl (guint rate_control) return "VBR"; case VA_RC_VBR_CONSTRAINED: return "VBR-Constrained"; +#if VA_CHECK_VERSION(0,39,1) + case VA_RC_MB: + return "MB"; +#endif default: break; } -- 2.7.4