Add check for output lengths of first/second pass of C based encoders.