diff --git a/subprojects/gst-plugins-bad/sys/qsv/gstqsvh264dec.cpp b/subprojects/gst-plugins-bad/sys/qsv/gstqsvh264dec.cpp index c90e0673e2..39baecc25e 100644 --- a/subprojects/gst-plugins-bad/sys/qsv/gstqsvh264dec.cpp +++ b/subprojects/gst-plugins-bad/sys/qsv/gstqsvh264dec.cpp @@ -478,6 +478,9 @@ gst_qsv_h264_dec_register (GstPlugin * plugin, guint rank, guint impl_index, max_resolution.height = resolutions_to_check[i].height; } + if (max_resolution.width == 0 || max_resolution.height == 0) + return; + GST_INFO ("Maximum supported resolution: %dx%d", max_resolution.width, max_resolution.height);