avutil: use EINVAL instead of -1 for the return code of crypto related init functions