diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-09-27 18:51:49 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-09-27 18:51:49 +0000 |
commit | b890198b669d2ab4340a3f15f11249952efd6780 (patch) | |
tree | d2f3d539cc9bcebe0bd1c03794e49628179aa8da /libavfilter/vf_noise.c | |
parent | f7bea731d955ec25a726abcd31862d3bd0183d58 (diff) |
avfilter: add av_cold to init()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_noise.c')
-rw-r--r-- | libavfilter/vf_noise.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_noise.c b/libavfilter/vf_noise.c index bd5b6f05e2..8eb3ee19b6 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]; |