nvh264encoder: fix bounds for auto-select GPU enumeration
authorJames Oliver <james.oliver@icetana.com.au>
Thu, 5 Oct 2023 05:29:49 +0000 (13:29 +0800)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 5 Oct 2023 11:20:17 +0000 (12:20 +0100)
commit23aa3907f5fa057a0810fa57676acfebf5613d3f
tree08dc5ecc3c4a9dd87def7675d2a90aaaf98e83d4
parent10d42caef22327a77a47222fc6aa4b6b091fcb61
nvh264encoder: fix bounds for auto-select GPU enumeration

Fixes the bounds-check for encoder auto-select GPU enumeration to be
between 0-7 instead of 0-6. This should allow 8-GPU machines to work
with nvautogpuh264enc for the last enumerated GPU.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5439>
subprojects/gst-plugins-bad/sys/nvcodec/gstnvh264encoder.cpp