va: h264enc: Do not let L0 number surplus the HW limitation.
authorHe Junyan <junyan.he@intel.com>
Fri, 15 Apr 2022 14:19:09 +0000 (22:19 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 22 Apr 2022 13:32:21 +0000 (13:32 +0000)
commit277aa12b86d7a1d554cc12792a67a62562ed683f
tree08c91bf2161350e7d8d48c6624a80ac848ff063b
parent26139303720a4b9e95fd4673087a93a972e8b722
va: h264enc: Do not let L0 number surplus the HW limitation.

The algorithm to calculate the L0/L1 number may let the L0 number
surplus the HW limitation. We should ensure that limitation after
that calculation.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2202>
subprojects/gst-plugins-bad/sys/va/gstvah264enc.c