[common] Prefer the manifest than formats_dict in determining codecs