Fix capability detection not handling ffmpeg decoders/encoders correctly