[FFmpeg-devel] [PATCH 5/6] avutil/tests/aes_ctr: reindent after the previous commit
James Almer
jamrial at gmail.com
Thu Apr 3 23:59:02 EEST 2025
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavutil/tests/aes_ctr.c | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/libavutil/tests/aes_ctr.c b/libavutil/tests/aes_ctr.c
index 94b0201c7b..6f21b8bda1 100644
--- a/libavutil/tests/aes_ctr.c
+++ b/libavutil/tests/aes_ctr.c
@@ -45,36 +45,36 @@ int main (void)
const uint8_t *iv;
for (int i = 0; i < 2; i++) {
- ae = av_aes_ctr_alloc();
- ad = av_aes_ctr_alloc();
+ ae = av_aes_ctr_alloc();
+ ad = av_aes_ctr_alloc();
- if (!ae || !ad)
- goto ERROR;
+ if (!ae || !ad)
+ goto ERROR;
- if (av_aes_ctr_init(ae, (const uint8_t*)"0123456789abcdef") < 0)
- goto ERROR;
+ if (av_aes_ctr_init(ae, (const uint8_t*)"0123456789abcdef") < 0)
+ goto ERROR;
- if (av_aes_ctr_init(ad, (const uint8_t*)"0123456789abcdef") < 0)
- goto ERROR;
+ if (av_aes_ctr_init(ad, (const uint8_t*)"0123456789abcdef") < 0)
+ goto ERROR;
if (i)
av_aes_ctr_set_iv(ae, fixed_iv);
else
- av_aes_ctr_set_random_iv(ae);
- iv = av_aes_ctr_get_iv(ae);
- av_aes_ctr_set_full_iv(ad, iv);
+ av_aes_ctr_set_random_iv(ae);
+ iv = av_aes_ctr_get_iv(ae);
+ av_aes_ctr_set_full_iv(ad, iv);
- av_aes_ctr_crypt(ae, tmp, plain, sizeof(tmp));
+ av_aes_ctr_crypt(ae, tmp, plain, sizeof(tmp));
if (i && memcmp(tmp, encrypted, sizeof(tmp)) != 0) {
av_log(NULL, AV_LOG_ERROR, "test failed\n");
goto ERROR;
}
- av_aes_ctr_crypt(ad, tmp, tmp, sizeof(tmp));
- if (memcmp(tmp, plain, sizeof(tmp)) != 0){
- av_log(NULL, AV_LOG_ERROR, "test failed\n");
- goto ERROR;
- }
+ av_aes_ctr_crypt(ad, tmp, tmp, sizeof(tmp));
+ if (memcmp(tmp, plain, sizeof(tmp)) != 0){
+ av_log(NULL, AV_LOG_ERROR, "test failed\n");
+ goto ERROR;
+ }
av_aes_ctr_free(ae);
av_aes_ctr_free(ad);
--
2.49.0
More information about the ffmpeg-devel
mailing list