diff options
Diffstat (limited to 'ffmpeg/libavcodec/bgmc.c')
| -rw-r--r-- | ffmpeg/libavcodec/bgmc.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ffmpeg/libavcodec/bgmc.c b/ffmpeg/libavcodec/bgmc.c index f48ac2e..1a6817b 100644 --- a/ffmpeg/libavcodec/bgmc.c +++ b/ffmpeg/libavcodec/bgmc.c @@ -1,6 +1,6 @@ /* * Block Gilbert-Moore decoder - * Copyright (c) 2010 Thilo Borgmann <thilo.borgmann _at_ googlemail.com> + * Copyright (c) 2010 Thilo Borgmann <thilo.borgmann _at_ mail.de> * * This file is part of FFmpeg. * @@ -22,9 +22,10 @@ /** * @file * Block Gilbert-Moore decoder as used by MPEG-4 ALS - * @author Thilo Borgmann <thilo.borgmann _at_ googlemail.com> + * @author Thilo Borgmann <thilo.borgmann _at_ mail.de> */ +#include "libavutil/attributes.h" #include "bgmc.h" #define FREQ_BITS 14 // bits used by frequency counters @@ -456,7 +457,8 @@ static uint8_t *bgmc_lut_getp(uint8_t *lut, int *lut_status, int delta) /** Initialize the lookup table arrays */ -int ff_bgmc_init(AVCodecContext *avctx, uint8_t **cf_lut, int **cf_lut_status) +av_cold int ff_bgmc_init(AVCodecContext *avctx, + uint8_t **cf_lut, int **cf_lut_status) { *cf_lut = av_malloc(sizeof(**cf_lut) * LUT_BUFF * 16 * LUT_SIZE); *cf_lut_status = av_malloc(sizeof(**cf_lut_status) * LUT_BUFF); @@ -475,7 +477,7 @@ int ff_bgmc_init(AVCodecContext *avctx, uint8_t **cf_lut, int **cf_lut_status) /** Release the lookup table arrays */ -void ff_bgmc_end(uint8_t **cf_lut, int **cf_lut_status) +av_cold void ff_bgmc_end(uint8_t **cf_lut, int **cf_lut_status) { av_freep(cf_lut); av_freep(cf_lut_status); @@ -483,8 +485,8 @@ void ff_bgmc_end(uint8_t **cf_lut, int **cf_lut_status) /** Initialize decoding and reads the first value */ -void ff_bgmc_decode_init(GetBitContext *gb, unsigned int *h, unsigned int *l, - unsigned int *v) +void ff_bgmc_decode_init(GetBitContext *gb, unsigned int *h, + unsigned int *l, unsigned int *v) { *h = TOP_VALUE; *l = 0; |
