Make sure we only select codecs with encoding and decoding support on the list of supported codecs