va: basedec: Always select first available format.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 3 May 2022 14:23:09 +0000 (16:23 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 11 May 2022 13:03:54 +0000 (15:03 +0200)
commit4c97ffeafbccb124682552b1185a234416e82a13
tree2a10219c0fc23b632e45393f5b7d0b53b2a40c48
parent260c085a5968ca112d6a0bbc3daccdcc1ee2e363
va: basedec: Always select first available format.

If the stream chroma doesn't match with any video format in the source
caps template (generated from va config surface formats) instead of
return unknown, return the first available format in the template,
assuming that the driver would be capable to do color conversions.

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