Make CodecIDToAudioCodec and CodecIDToVideoCodec available as global functions

Make CodecIDToAudioCodec and CodecIDToVideoCodec available as global
functions, so that they can be used by Device Capabilities getAVCodecs()
interface to query the list of supported codecs.

These utility functions converts an FFmpeg audio codec ID into its corresponding
supported codec id.