summaryrefslogtreecommitdiff
path: root/libavcodec/qdm2.c
diff options
context:
space:
mode:
authorDaniel Verkamp <daniel@drv.nu>2009-02-22 13:48:55 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-02-22 13:48:55 +0000
commit5ef251e50437ce84a00735c5cac8dd836fb032e9 (patch)
treee752d1fdee8e36709b00b5af5005599ccd071375 /libavcodec/qdm2.c
parent50ded3fdb65aa6298253a1522c0981c3e113d022 (diff)
downloadffmpeg-5ef251e50437ce84a00735c5cac8dd836fb032e9.tar.gz
Add missing av_cold in static init/close functions.
Patch by Daniel Verkamp daniel at drv dot nu. Originally committed as revision 17526 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/qdm2.c')
-rw-r--r--libavcodec/qdm2.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/qdm2.c b/libavcodec/qdm2.c
index 541d0728e6..a3373a16d9 100644
--- a/libavcodec/qdm2.c
+++ b/libavcodec/qdm2.c
@@ -222,7 +222,7 @@ static float noise_samples[128];
static DECLARE_ALIGNED_16(MPA_INT, mpa_window[512]);
-static void softclip_table_init(void) {
+static av_cold void softclip_table_init(void) {
int i;
double dfl = SOFTCLIP_THRESHOLD - 32767;
float delta = 1.0 / -dfl;
@@ -232,7 +232,7 @@ static void softclip_table_init(void) {
// random generated table
-static void rnd_table_init(void) {
+static av_cold void rnd_table_init(void) {
int i,j;
uint32_t ldw,hdw;
uint64_t tmp64_1;
@@ -268,7 +268,7 @@ static void rnd_table_init(void) {
}
-static void init_noise_samples(void) {
+static av_cold void init_noise_samples(void) {
int i;
int random_seed = 0;
float delta = 1.0 / 16384.0;
@@ -279,7 +279,7 @@ static void init_noise_samples(void) {
}
-static void qdm2_init_vlc(void)
+static av_cold void qdm2_init_vlc(void)
{
init_vlc (&vlc_tab_level, 8, 24,
vlc_tab_level_huffbits, 1, 1,
@@ -1660,7 +1660,7 @@ static void qdm2_synthesis_filter (QDM2Context *q, int index)
*
* @param q context
*/
-static void qdm2_init(QDM2Context *q) {
+static av_cold void qdm2_init(QDM2Context *q) {
static int initialized = 0;
if (initialized != 0)
@@ -1726,7 +1726,7 @@ static void dump_context(QDM2Context *q)
/**
* Init parameters from codec extradata
*/
-static int qdm2_decode_init(AVCodecContext *avctx)
+static av_cold int qdm2_decode_init(AVCodecContext *avctx)
{
QDM2Context *s = avctx->priv_data;
uint8_t *extradata;
@@ -1896,7 +1896,7 @@ static int qdm2_decode_init(AVCodecContext *avctx)
}
-static int qdm2_decode_close(AVCodecContext *avctx)
+static av_cold int qdm2_decode_close(AVCodecContext *avctx)
{
QDM2Context *s = avctx->priv_data;