summaryrefslogtreecommitdiff
path: root/libavresample/dither.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-04-30 18:30:48 +0200
committerDiego Biurrun <diego@biurrun.de>2013-05-04 21:10:05 +0200
commite445647b4fdf481b13b2743b303d84de4f43bedd (patch)
treed094fdf99e5888d629a6c90fc6fc30416a340331 /libavresample/dither.c
parent093804a93cc5da3f95f98265a5df116912443cec (diff)
avresample: Add av_cold attributes to init functions missing them
Diffstat (limited to 'libavresample/dither.c')
-rw-r--r--libavresample/dither.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavresample/dither.c b/libavresample/dither.c
index f24bf5c765..17de8291ea 100644
--- a/libavresample/dither.c
+++ b/libavresample/dither.c
@@ -31,6 +31,7 @@
#include <math.h>
#include <stdint.h>
+#include "libavutil/attributes.h"
#include "libavutil/common.h"
#include "libavutil/lfg.h"
#include "libavutil/mem.h"
@@ -325,8 +326,8 @@ void ff_dither_free(DitherContext **cp)
av_freep(cp);
}
-static void dither_init(DitherDSPContext *ddsp,
- enum AVResampleDitherMethod method)
+static av_cold void dither_init(DitherDSPContext *ddsp,
+ enum AVResampleDitherMethod method)
{
ddsp->quantize = quantize_c;
ddsp->ptr_align = 1;