diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-02-01 10:31:59 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-05-04 21:09:45 +0200 |
commit | 6fee1b90ce3bf4fbdfde7016e0890057c9000487 (patch) | |
tree | c1b37ab53c8caab6b47702ec4451038c5d2882e4 /libavcodec/dnxhdenc.c | |
parent | 72e228b274a98af1aba9588415d0cd87fde44663 (diff) | |
download | ffmpeg-6fee1b90ce3bf4fbdfde7016e0890057c9000487.tar.gz |
avcodec: Add av_cold attributes to init functions missing them
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 4ea3709b08..5b59e643d1 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" @@ -100,7 +101,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); @@ -155,7 +156,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* @@ -214,7 +215,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) @@ -228,7 +229,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; |