diff options
Diffstat (limited to 'libavutil/tests/des.c')
-rw-r--r-- | libavutil/tests/des.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavutil/tests/des.c b/libavutil/tests/des.c index 1e7a2fa50a..ed04fad519 100644 --- a/libavutil/tests/des.c +++ b/libavutil/tests/des.c @@ -1,18 +1,18 @@ /* - * This file is part of Libav. + * This file is part of FFmpeg. * - * Libav is free software; you can redistribute it and/or + * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * - * Libav is distributed in the hope that it will be useful, + * FFmpeg is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with Libav; if not, write to the Free Software + * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ @@ -98,10 +98,10 @@ int main(void) key[1] = rand64(); key[2] = rand64(); data = rand64(); - av_des_init(&d, key, 192, 0); - av_des_crypt(&d, &ct, &data, 1, NULL, 0); - av_des_init(&d, key, 192, 1); - av_des_crypt(&d, &ct, &ct, 1, NULL, 1); + av_des_init(&d, (uint8_t *) key, 192, 0); + av_des_crypt(&d, (uint8_t *) &ct, (uint8_t *) &data, 1, NULL, 0); + av_des_init(&d, (uint8_t *) key, 192, 1); + av_des_crypt(&d, (uint8_t *) &ct, (uint8_t *) &ct, 1, NULL, 1); if (ct != data) { printf("Test 2 failed\n"); return 1; |