diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-05 13:34:29 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-05 13:34:29 +0400 |
commit | 0aa095483d194c0cfe6acc6dd4c72e545312676e (patch) | |
tree | 67884d80009d760bcb0889ca410c3c4fee32e9db /libavcodec/dnxhdenc.c | |
parent | 057c5d2e1646ee9536edf514b41690c8ffeef6fc (diff) | |
parent | 6fee1b90ce3bf4fbdfde7016e0890057c9000487 (diff) |
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/dnxhdenc.c')
-rw-r--r-- | libavcodec/dnxhdenc.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c index 4b6ce2f60b..636905f83e 100644 --- a/libavcodec/dnxhdenc.c +++ b/libavcodec/dnxhdenc.c @@ -26,6 +26,7 @@ //#define DEBUG #define RC_VARIANCE 1 // use variance or ssd for fast rc +#include "libavutil/attributes.h" #include "libavutil/internal.h" #include "libavutil/opt.h" #include "avcodec.h" @@ -115,7 +116,7 @@ static int dnxhd_10bit_dct_quantize(MpegEncContext *ctx, int16_t *block, return last_non_zero; } -static int dnxhd_init_vlc(DNXHDEncContext *ctx) +static av_cold int dnxhd_init_vlc(DNXHDEncContext *ctx) { int i, j, level, run; int max_level = 1<<(ctx->cid_table->bit_depth+2); @@ -170,7 +171,7 @@ static int dnxhd_init_vlc(DNXHDEncContext *ctx) return -1; } -static int dnxhd_init_qmat(DNXHDEncContext *ctx, int lbias, int cbias) +static av_cold int dnxhd_init_qmat(DNXHDEncContext *ctx, int lbias, int cbias) { // init first elem to 1 to avoid div by 0 in convert_matrix uint16_t weight_matrix[64] = {1,}; // convert_matrix needs uint16_t* @@ -234,7 +235,7 @@ static int dnxhd_init_qmat(DNXHDEncContext *ctx, int lbias, int cbias) return -1; } -static int dnxhd_init_rc(DNXHDEncContext *ctx) +static av_cold int dnxhd_init_rc(DNXHDEncContext *ctx) { FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->mb_rc, 8160*ctx->m.avctx->qmax*sizeof(RCEntry), fail); if (ctx->m.avctx->mb_decision != FF_MB_DECISION_RD) @@ -248,7 +249,7 @@ static int dnxhd_init_rc(DNXHDEncContext *ctx) return -1; } -static int dnxhd_encode_init(AVCodecContext *avctx) +static av_cold int dnxhd_encode_init(AVCodecContext *avctx) { DNXHDEncContext *ctx = avctx->priv_data; int i, index, bit_depth; |