fix codec lookup