diff options
Diffstat (limited to 'ffmpeg/libavcodec/ralf.c')
| -rw-r--r-- | ffmpeg/libavcodec/ralf.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ffmpeg/libavcodec/ralf.c b/ffmpeg/libavcodec/ralf.c index d3f82d6..8a319ac 100644 --- a/ffmpeg/libavcodec/ralf.c +++ b/ffmpeg/libavcodec/ralf.c @@ -3,20 +3,20 @@ * * Copyright (c) 2012 Konstantin Shishkov * - * 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 */ @@ -26,6 +26,7 @@ * Dedicated to the mastermind behind it, Ralph Wiggum. */ +#include "libavutil/attributes.h" #include "libavutil/channel_layout.h" #include "avcodec.h" #include "get_bits.h" @@ -72,7 +73,7 @@ typedef struct RALFContext { #define MAX_ELEMS 644 // no RALF table uses more than that -static int init_ralf_vlc(VLC *vlc, const uint8_t *data, int elems) +static av_cold int init_ralf_vlc(VLC *vlc, const uint8_t *data, int elems) { uint8_t lens[MAX_ELEMS]; uint16_t codes[MAX_ELEMS]; @@ -521,6 +522,7 @@ static void decode_flush(AVCodecContext *avctx) AVCodec ff_ralf_decoder = { .name = "ralf", + .long_name = NULL_IF_CONFIG_SMALL("RealAudio Lossless"), .type = AVMEDIA_TYPE_AUDIO, .id = AV_CODEC_ID_RALF, .priv_data_size = sizeof(RALFContext), @@ -529,7 +531,6 @@ AVCodec ff_ralf_decoder = { .decode = decode_frame, .flush = decode_flush, .capabilities = CODEC_CAP_DR1, - .long_name = NULL_IF_CONFIG_SMALL("RealAudio Lossless"), .sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, AV_SAMPLE_FMT_NONE }, }; |
