diff --git a/libswresample/dither.c b/libswresample/dither.c index 8121f11c2f0697191cfd465d21dc961dfb79f312..ca09e67f4db84634922d3a3c0909e688030663dc 100644 --- a/libswresample/dither.c +++ b/libswresample/dither.c @@ -72,7 +72,7 @@ void swri_get_dither(SwrContext *s, void *dst, int len, unsigned seed, enum AVSa av_free(tmp); } -int swri_dither_init(SwrContext *s, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt) +av_cold int swri_dither_init(SwrContext *s, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt) { int i; double scale = 0; diff --git a/libswresample/x86/resample_init.c b/libswresample/x86/resample_init.c index 99f5e140401b8eb7967f2b76e73b43825b3f9fa6..93001d65cbb620bc176df5220bc24d06ecfc49a4 100644 --- a/libswresample/x86/resample_init.c +++ b/libswresample/x86/resample_init.c @@ -43,7 +43,7 @@ RESAMPLE_FUNCS(float, fma3); RESAMPLE_FUNCS(float, fma4); RESAMPLE_FUNCS(double, sse2); -void swri_resample_dsp_x86_init(ResampleContext *c) +av_cold void swri_resample_dsp_x86_init(ResampleContext *c) { int av_unused mm_flags = av_get_cpu_flags();