avutil: use EINVAL instead of -1 for the return code of crypto related init functions
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Thu, 15 Oct 2015 23:36:22 +0000 (19:36 -0400)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Sun, 18 Oct 2015 19:17:58 +0000 (15:17 -0400)
commit07d4fe3a871f3ea2f3e475bc84c3e85102ec75ba
tree331d7f2f5ecbf93ab6818a736bca9b28ff0ba96d
parent94f7c97e05737c2856bb08e2172b012a56568bdc
avutil: use EINVAL instead of -1 for the return code of crypto related init functions

These functions return an error typically when the key size is an
incorrect number. AVERROR(EINVAL) is more specific than -1.

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
libavutil/aes.c
libavutil/camellia.c
libavutil/cast5.c
libavutil/des.c
libavutil/rc4.c
libavutil/ripemd.c
libavutil/sha.c
libavutil/sha512.c
libavutil/twofish.c