FFmpeg: exclude AVERROR_PATCHWELCOME from supported formats
`avformat_query_codec` returns `AVERROR_PATCHWELCOME` for some formats.
This means that the container could in theory hold such formats, but the
implementation does not support it. So we reject them.
As drive-by, simplify the implementation via ranges.
Pick-to: 6.12
Change-Id: I282bc2bb9e7190ccc2527386449a9533963e37a4
Reviewed-by: Nils Petter Skålerud <nils.petter.skalerud@qt.io>
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
| commit | 701c4322da6fb62fb28bb22c38cdfa1b825ba22d |
| parent | 75e85d553a43f8e7f96c71d379c7b635b369418e |
| author | Tim Blechmann <tim.blechmann@qt.io> |
| committer | Tim Blechmann <tim.blechmann@qt.io> |
| commit time | Tue, 11 Aug 2026 04:58:19 +0000 |