diff --git a/subprojects/gst-plugins-bad/sys/va/gstvacaps.c b/subprojects/gst-plugins-bad/sys/va/gstvacaps.c index 4bc0cc96e0..2f281a1ae5 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvacaps.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvacaps.c @@ -350,6 +350,10 @@ gst_va_create_raw_caps_from_config (GstVaDisplay * display, VAConfigID config) if (formats->len == 0) goto bail; + /* if driver reports maximum width or height lower than minimum then skip */ + if (max_width < min_width || max_height < min_height) + goto bail; + if (!fix_raw_formats (display, profile, entrypoint, formats)) goto bail;