[FFmpeg-devel] [PATCH 2/3] avutil/sha: use EINVAL instead of -1 for the return code of av_sha_init()
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Sun Oct 18 02:06:59 CEST 2015
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
libavutil/sha.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/sha.c b/libavutil/sha.c
index 9963043..748bb9c 100644
--- a/libavutil/sha.c
+++ b/libavutil/sha.c
@@ -305,7 +305,7 @@ av_cold int av_sha_init(AVSHA *ctx, int bits)
ctx->transform = sha256_transform;
break;
default:
- return -1;
+ return AVERROR(EINVAL);
}
ctx->count = 0;
return 0;
--
2.6.1
More information about the ffmpeg-devel
mailing list