Further add a codecType check