restore isValidCodec function name issue when merged between branches.