]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/sha512.c
avformat/avio: Fix EOF handiling of ffurl_read_complete()
[ffmpeg] / libavutil / sha512.c
index 7ed4ea547855d92681608b9acb30dcf3144d5118..445480cce1ea57ee209e488711dd51c29100ddaa 100644 (file)
@@ -91,7 +91,7 @@ static const uint64_t K512[80] = {
 #define ror(value, bits) (((value) >> (bits)) | ((value) << (64 - (bits))))
 
 #define Ch(x,y,z)   (((x) & ((y) ^ (z))) ^ (z))
-#define Maj(x,y,z)  ((((x) | (y)) & (z)) | ((x) & (y)))
+#define Maj(z,y,x)  ((((x) | (y)) & (z)) | ((x) & (y)))
 
 #define Sigma0_512(x)   (ror((x), 28) ^ ror((x), 34) ^ ror((x), 39))
 #define Sigma1_512(x)   (ror((x), 14) ^ ror((x), 18) ^ ror((x), 41))