[FFmpeg-devel] [PATCH 1/6] avutil/sha512: use EINVAL instead of -1 for the return code of av_sha512_init()
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Sun Oct 18 01:39:13 CEST 2015
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
libavutil/sha512.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/sha512.c b/libavutil/sha512.c
index 66a864f..e2fc58a 100644
--- a/libavutil/sha512.c
+++ b/libavutil/sha512.c
@@ -233,7 +233,7 @@ av_cold int av_sha512_init(AVSHA512 *ctx, int bits)
ctx->state[7] = UINT64_C(0x5BE0CD19137E2179);
break;
default:
- return -1;
+ return AVERROR(EINVAL);
}
ctx->count = 0;
return 0;
--
2.6.1
More information about the ffmpeg-devel
mailing list