[FFmpeg-cvslog] blowfish-test: Return different values for different errors
Diego Biurrun
git at videolan.org
Fri Jun 24 11:13:00 CEST 2016
ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Tue May 17 20:44:04 2016 +0200| [a86ef80494d759807a5ef8dd12838f0690092e37] | committer: Diego Biurrun
blowfish-test: Return different values for different errors
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a86ef80494d759807a5ef8dd12838f0690092e37
---
libavutil/tests/blowfish.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavutil/tests/blowfish.c b/libavutil/tests/blowfish.c
index acaab70..93e8998 100644
--- a/libavutil/tests/blowfish.c
+++ b/libavutil/tests/blowfish.c
@@ -174,13 +174,13 @@ int main(void)
av_blowfish_crypt_ecb(&ctx, &tmptext_l[i], &tmptext_r[i], 0);
if (tmptext_l[i] != ciphertext_l[i] || tmptext_r[i] != ciphertext_r[i]) {
printf("Test encryption failed.\n");
- return 1;
+ return 2;
}
av_blowfish_crypt_ecb(&ctx, &tmptext_l[i], &tmptext_r[i], 1);
if (tmptext_l[i] != plaintext_l[i] || tmptext_r[i] != plaintext_r[i]) {
printf("Test decryption failed.\n");
- return 1;
+ return 3;
}
}
printf("Test encryption/decryption success.\n");
More information about the ffmpeg-cvslog
mailing list