Simplify codec transcoding function checking