FFmpeg: replace findAndOpenAVDecoder with findAndScoreCodecs
`findAndOpenAVDecoder` is a bit of an inconvenient API:
* it relies on side effects of the "opener" function to propagate the
result to the caller
* it is hard to add temporary tracing when trying to follow the
application logic.
so we remove `findAndOpenCodec` completely, but replace it with
`findAndScoreCodecs` to provide a list of scored codecs to the caller.
This can then be used on the caller side without having to rely on side
effects to store the result, leading to a control flow which is much
easier to reason about, as the opener is a simple loop with that we can
easily break from.
Pick-to: 6.12
Change-Id: I30dcc85327d57ffb1be7e0845b3f22fcf0b6e886
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>