X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fpcm_tablegen.c;h=8a9bcb6fb17a3d0d5d1980ac22f613d06bb08028;hb=3fbc9bbb884da6a1fb331b1cb03945008ee36312;hp=57ecb43dc6e9dca81ae0b3ad3dbf373ec09fcd56;hpb=fa034b44270bbddfc11c691e94a6b8e97c68f84b;p=ffmpeg diff --git a/libavcodec/pcm_tablegen.c b/libavcodec/pcm_tablegen.c index 57ecb43dc6e..8a9bcb6fb17 100644 --- a/libavcodec/pcm_tablegen.c +++ b/libavcodec/pcm_tablegen.c @@ -3,20 +3,20 @@ * * Copyright (c) 2010 Reimar Döffinger * - * This file is part of FFmpeg. + * This file is part of Libav. * - * FFmpeg is free software; you can redistribute it and/or + * Libav 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. * - * FFmpeg is distributed in the hope that it will be useful, + * Libav 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 FFmpeg; if not, write to the Free Software + * License along with Libav; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ @@ -32,13 +32,8 @@ int main(void) write_fileheader(); - printf("static const uint8_t linear_to_alaw[1 << 14] = {\n"); - write_uint8_array(linear_to_alaw, 1 << 14); - printf("};\n"); - - printf("static const uint8_t linear_to_ulaw[1 << 14] = {\n"); - write_uint8_array(linear_to_ulaw, 1 << 14); - printf("};\n"); + WRITE_ARRAY("static const", uint8_t, linear_to_alaw); + WRITE_ARRAY("static const", uint8_t, linear_to_ulaw); return 0; }