Commit e445647b authored by Diego Biurrun's avatar Diego Biurrun

avresample: Add av_cold attributes to init functions missing them

parent 093804a9
...@@ -282,7 +282,7 @@ static void mix_2_to_6_fltp_flt_c(float **samples, float **matrix, int len, ...@@ -282,7 +282,7 @@ static void mix_2_to_6_fltp_flt_c(float **samples, float **matrix, int len,
} }
} }
static int mix_function_init(AudioMix *am) static av_cold int mix_function_init(AudioMix *am)
{ {
am->func_descr = am->func_descr_generic = "n/a"; am->func_descr = am->func_descr_generic = "n/a";
am->mix = am->mix_generic = NULL; am->mix = am->mix_generic = NULL;
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <math.h> #include <math.h>
#include <stdint.h> #include <stdint.h>
#include "libavutil/attributes.h"
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/lfg.h" #include "libavutil/lfg.h"
#include "libavutil/mem.h" #include "libavutil/mem.h"
...@@ -325,7 +326,7 @@ void ff_dither_free(DitherContext **cp) ...@@ -325,7 +326,7 @@ void ff_dither_free(DitherContext **cp)
av_freep(cp); av_freep(cp);
} }
static void dither_init(DitherDSPContext *ddsp, static av_cold void dither_init(DitherDSPContext *ddsp,
enum AVResampleDitherMethod method) enum AVResampleDitherMethod method)
{ {
ddsp->quantize = quantize_c; ddsp->quantize = quantize_c;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment