avfilter: add av_cold to init()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
pull/37/merge
Paul B Mahol 11 years ago
parent f7bea731d9
commit b890198b66
  1. 2
      libavfilter/asrc_aevalsrc.c
  2. 2
      libavfilter/asrc_anullsrc.c
  3. 2
      libavfilter/f_interleave.c
  4. 2
      libavfilter/trim.c
  5. 4
      libavfilter/vf_extractplanes.c
  6. 2
      libavfilter/vf_noise.c
  7. 2
      libavfilter/vsrc_cellauto.c
  8. 2
      libavfilter/vsrc_life.c

@ -81,7 +81,7 @@ static const AVOption aevalsrc_options[]= {
AVFILTER_DEFINE_CLASS(aevalsrc); AVFILTER_DEFINE_CLASS(aevalsrc);
static int init(AVFilterContext *ctx) static av_cold int init(AVFilterContext *ctx)
{ {
EvalContext *eval = ctx->priv; EvalContext *eval = ctx->priv;
char *args1 = av_strdup(eval->exprs); char *args1 = av_strdup(eval->exprs);

@ -59,7 +59,7 @@ static const AVOption anullsrc_options[]= {
AVFILTER_DEFINE_CLASS(anullsrc); AVFILTER_DEFINE_CLASS(anullsrc);
static int init(AVFilterContext *ctx) static av_cold int init(AVFilterContext *ctx)
{ {
ANullContext *null = ctx->priv; ANullContext *null = ctx->priv;
int ret; int ret;

@ -102,7 +102,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
return push_frame(ctx); return push_frame(ctx);
} }
static int init(AVFilterContext *ctx) static av_cold int init(AVFilterContext *ctx)
{ {
InterleaveContext *interleave = ctx->priv; InterleaveContext *interleave = ctx->priv;
const AVFilterPad *outpad = &ctx->filter->outputs[0]; const AVFilterPad *outpad = &ctx->filter->outputs[0];

@ -74,7 +74,7 @@ typedef struct TrimContext {
int eof; int eof;
} TrimContext; } TrimContext;
static int init(AVFilterContext *ctx) static av_cold int init(AVFilterContext *ctx)
{ {
TrimContext *s = ctx->priv; TrimContext *s = ctx->priv;

@ -251,7 +251,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
return ret; return ret;
} }
static int init(AVFilterContext *ctx) static av_cold int init(AVFilterContext *ctx)
{ {
ExtractPlanesContext *e = ctx->priv; ExtractPlanesContext *e = ctx->priv;
int planes = (e->requested_planes & 0xf) | (e->requested_planes >> 4); int planes = (e->requested_planes & 0xf) | (e->requested_planes >> 4);
@ -311,7 +311,7 @@ AVFilter avfilter_vf_extractplanes = {
#if CONFIG_ALPHAEXTRACT_FILTER #if CONFIG_ALPHAEXTRACT_FILTER
static int init_alphaextract(AVFilterContext *ctx) static av_cold int init_alphaextract(AVFilterContext *ctx)
{ {
ExtractPlanesContext *e = ctx->priv; ExtractPlanesContext *e = ctx->priv;

@ -98,7 +98,7 @@ AVFILTER_DEFINE_CLASS(noise);
static const int8_t patt[4] = { -1, 0, 1, 0 }; static const int8_t patt[4] = { -1, 0, 1, 0 };
#define RAND_N(range) ((int) ((double) range * av_lfg_get(lfg) / (UINT_MAX + 1.0))) #define RAND_N(range) ((int) ((double) range * av_lfg_get(lfg) / (UINT_MAX + 1.0)))
static int init_noise(NoiseContext *n, int comp) static av_cold int init_noise(NoiseContext *n, int comp)
{ {
int8_t *noise = av_malloc(MAX_NOISE * sizeof(int8_t)); int8_t *noise = av_malloc(MAX_NOISE * sizeof(int8_t));
FilterParams *fp = &n->param[comp]; FilterParams *fp = &n->param[comp];

@ -159,7 +159,7 @@ static int init_pattern_from_file(AVFilterContext *ctx)
return init_pattern_from_string(ctx); return init_pattern_from_string(ctx);
} }
static int init(AVFilterContext *ctx) static av_cold int init(AVFilterContext *ctx)
{ {
CellAutoContext *cellauto = ctx->priv; CellAutoContext *cellauto = ctx->priv;
int ret; int ret;

@ -217,7 +217,7 @@ static int init_pattern_from_file(AVFilterContext *ctx)
return 0; return 0;
} }
static int init(AVFilterContext *ctx) static av_cold int init(AVFilterContext *ctx)
{ {
LifeContext *life = ctx->priv; LifeContext *life = ctx->priv;
int ret; int ret;

Loading…
Cancel
Save