[FFmpeg-cvslog] avfilter: add av_cold to init()
Paul B Mahol
git at videolan.org
Fri Sep 27 20:57:22 CEST 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Sep 27 18:51:49 2013 +0000| [b890198b669d2ab4340a3f15f11249952efd6780] | committer: Paul B Mahol
avfilter: add av_cold to init()
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b890198b669d2ab4340a3f15f11249952efd6780
---
libavfilter/asrc_aevalsrc.c | 2 +-
libavfilter/asrc_anullsrc.c | 2 +-
libavfilter/f_interleave.c | 2 +-
libavfilter/trim.c | 2 +-
libavfilter/vf_extractplanes.c | 4 ++--
libavfilter/vf_noise.c | 2 +-
libavfilter/vsrc_cellauto.c | 2 +-
libavfilter/vsrc_life.c | 2 +-
8 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/libavfilter/asrc_aevalsrc.c b/libavfilter/asrc_aevalsrc.c
index b0d885a..3f71ac3 100644
--- a/libavfilter/asrc_aevalsrc.c
+++ b/libavfilter/asrc_aevalsrc.c
@@ -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);
diff --git a/libavfilter/asrc_anullsrc.c b/libavfilter/asrc_anullsrc.c
index a8aab74..4f76759 100644
--- a/libavfilter/asrc_anullsrc.c
+++ b/libavfilter/asrc_anullsrc.c
@@ -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;
diff --git a/libavfilter/f_interleave.c b/libavfilter/f_interleave.c
index 033bc62..6935855 100644
--- a/libavfilter/f_interleave.c
+++ b/libavfilter/f_interleave.c
@@ -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];
diff --git a/libavfilter/trim.c b/libavfilter/trim.c
index 9864c1f..bcadca3 100644
--- a/libavfilter/trim.c
+++ b/libavfilter/trim.c
@@ -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;
diff --git a/libavfilter/vf_extractplanes.c b/libavfilter/vf_extractplanes.c
index 52dffcc..7c04a78 100644
--- a/libavfilter/vf_extractplanes.c
+++ b/libavfilter/vf_extractplanes.c
@@ -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;
diff --git a/libavfilter/vf_noise.c b/libavfilter/vf_noise.c
index bd5b6f0..8eb3ee1 100644
--- a/libavfilter/vf_noise.c
+++ b/libavfilter/vf_noise.c
@@ -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];
diff --git a/libavfilter/vsrc_cellauto.c b/libavfilter/vsrc_cellauto.c
index c8b0b76..e7bc515 100644
--- a/libavfilter/vsrc_cellauto.c
+++ b/libavfilter/vsrc_cellauto.c
@@ -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;
diff --git a/libavfilter/vsrc_life.c b/libavfilter/vsrc_life.c
index 26bd38b..85ebc0e 100644
--- a/libavfilter/vsrc_life.c
+++ b/libavfilter/vsrc_life.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list