diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-05 11:34:29 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-05 11:34:29 +0200 |
commit | 0aa095483d194c0cfe6acc6dd4c72e545312676e (patch) | |
tree | 67884d80009d760bcb0889ca410c3c4fee32e9db /libavcodec/bgmc.c | |
parent | 057c5d2e1646ee9536edf514b41690c8ffeef6fc (diff) | |
parent | 6fee1b90ce3bf4fbdfde7016e0890057c9000487 (diff) | |
download | ffmpeg-0aa095483d194c0cfe6acc6dd4c72e545312676e.tar.gz |
Merge commit '6fee1b90ce3bf4fbdfde7016e0890057c9000487'
* commit '6fee1b90ce3bf4fbdfde7016e0890057c9000487':
avcodec: Add av_cold attributes to init functions missing them
Conflicts:
libavcodec/aacpsy.c
libavcodec/atrac3.c
libavcodec/dvdsubdec.c
libavcodec/ffv1.c
libavcodec/ffv1enc.c
libavcodec/h261enc.c
libavcodec/h264_parser.c
libavcodec/h264dsp.c
libavcodec/h264pred.c
libavcodec/libschroedingerenc.c
libavcodec/libxvid_rc.c
libavcodec/mpeg12.c
libavcodec/mpeg12enc.c
libavcodec/proresdsp.c
libavcodec/rangecoder.c
libavcodec/videodsp.c
libavcodec/x86/proresdsp_init.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/bgmc.c')
-rw-r--r-- | libavcodec/bgmc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libavcodec/bgmc.c b/libavcodec/bgmc.c index f48ac2e4bc..d646d903f6 100644 --- a/libavcodec/bgmc.c +++ b/libavcodec/bgmc.c @@ -25,6 +25,7 @@ * @author Thilo Borgmann <thilo.borgmann _at_ googlemail.com> */ +#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); @@ -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) +av_cold void ff_bgmc_decode_init(GetBitContext *gb, unsigned int *h, + unsigned int *l, unsigned int *v) { *h = TOP_VALUE; *l = 0; |