[FFmpeg-devel] [PATCH 3/6] avutil/aes: use EINVAL instead of -1 for the return code of av_aes_init()
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Sun Oct 18 01:39:15 CEST 2015
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
libavutil/aes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/aes.c b/libavutil/aes.c
index 8d4bbbb..b59e7de 100644
--- a/libavutil/aes.c
+++ b/libavutil/aes.c
@@ -223,7 +223,7 @@ int av_aes_init(AVAES *a, const uint8_t *key, int key_bits, int decrypt)
}
if (key_bits != 128 && key_bits != 192 && key_bits != 256)
- return -1;
+ return AVERROR(EINVAL);
a->rounds = rounds;
--
2.6.1
More information about the ffmpeg-devel
mailing list