mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avfilter: add av_cold to init()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
f7bea731d9
commit
b890198b66
@ -81,7 +81,7 @@ static const AVOption aevalsrc_options[]= {
|
||||
|
||||
AVFILTER_DEFINE_CLASS(aevalsrc);
|
||||
|
||||
static int init(AVFilterContext *ctx)
|
||||
static av_cold int init(AVFilterContext *ctx)
|
||||
{
|
||||
EvalContext *eval = ctx->priv;
|
||||
char *args1 = av_strdup(eval->exprs);
|
||||
|
@ -59,7 +59,7 @@ static const AVOption anullsrc_options[]= {
|
||||
|
||||
AVFILTER_DEFINE_CLASS(anullsrc);
|
||||
|
||||
static int init(AVFilterContext *ctx)
|
||||
static av_cold int init(AVFilterContext *ctx)
|
||||
{
|
||||
ANullContext *null = ctx->priv;
|
||||
int ret;
|
||||
|
@ -102,7 +102,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
||||
return push_frame(ctx);
|
||||
}
|
||||
|
||||
static int init(AVFilterContext *ctx)
|
||||
static av_cold int init(AVFilterContext *ctx)
|
||||
{
|
||||
InterleaveContext *interleave = ctx->priv;
|
||||
const AVFilterPad *outpad = &ctx->filter->outputs[0];
|
||||
|
@ -74,7 +74,7 @@ typedef struct TrimContext {
|
||||
int eof;
|
||||
} TrimContext;
|
||||
|
||||
static int init(AVFilterContext *ctx)
|
||||
static av_cold int init(AVFilterContext *ctx)
|
||||
{
|
||||
TrimContext *s = ctx->priv;
|
||||
|
||||
|
@ -251,7 +251,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int init(AVFilterContext *ctx)
|
||||
static av_cold int init(AVFilterContext *ctx)
|
||||
{
|
||||
ExtractPlanesContext *e = ctx->priv;
|
||||
int planes = (e->requested_planes & 0xf) | (e->requested_planes >> 4);
|
||||
@ -311,7 +311,7 @@ AVFilter avfilter_vf_extractplanes = {
|
||||
|
||||
#if CONFIG_ALPHAEXTRACT_FILTER
|
||||
|
||||
static int init_alphaextract(AVFilterContext *ctx)
|
||||
static av_cold int init_alphaextract(AVFilterContext *ctx)
|
||||
{
|
||||
ExtractPlanesContext *e = ctx->priv;
|
||||
|
||||
|
@ -98,7 +98,7 @@ AVFILTER_DEFINE_CLASS(noise);
|
||||
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)))
|
||||
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));
|
||||
FilterParams *fp = &n->param[comp];
|
||||
|
@ -159,7 +159,7 @@ static int init_pattern_from_file(AVFilterContext *ctx)
|
||||
return init_pattern_from_string(ctx);
|
||||
}
|
||||
|
||||
static int init(AVFilterContext *ctx)
|
||||
static av_cold int init(AVFilterContext *ctx)
|
||||
{
|
||||
CellAutoContext *cellauto = ctx->priv;
|
||||
int ret;
|
||||
|
@ -217,7 +217,7 @@ static int init_pattern_from_file(AVFilterContext *ctx)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int init(AVFilterContext *ctx)
|
||||
static av_cold int init(AVFilterContext *ctx)
|
||||
{
|
||||
LifeContext *life = ctx->priv;
|
||||
int ret;
|
||||
|
Loading…
Reference in New Issue
Block a user