Browse code

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

Daniel Verkamp authored on 2009/02/22 22:48:55
Showing 25 changed files
... ...
@@ -785,7 +785,7 @@ static int decode_frame(AVCodecContext *avctx,
785 785
 }
786 786
 
787 787
 
788
-static void common_init(AVCodecContext *avctx){
788
+static av_cold void common_init(AVCodecContext *avctx){
789 789
     FourXContext * const f = avctx->priv_data;
790 790
 
791 791
     dsputil_init(&f->dsp, avctx);
... ...
@@ -88,7 +88,7 @@ typedef struct IComplex {
88 88
     short re,im;
89 89
 } IComplex;
90 90
 
91
-static void fft_init(int ln)
91
+static av_cold void fft_init(int ln)
92 92
 {
93 93
     int i, n;
94 94
     float alpha;
... ...
@@ -149,7 +149,7 @@ typedef struct ADPCMContext {
149 149
 /* XXX: implement encoding */
150 150
 
151 151
 #if CONFIG_ENCODERS
152
-static int adpcm_encode_init(AVCodecContext *avctx)
152
+static av_cold int adpcm_encode_init(AVCodecContext *avctx)
153 153
 {
154 154
     if (avctx->channels > 2)
155 155
         return -1; /* only stereo or mono =) */
... ...
@@ -199,7 +199,7 @@ static int adpcm_encode_init(AVCodecContext *avctx)
199 199
     return 0;
200 200
 }
201 201
 
202
-static int adpcm_encode_close(AVCodecContext *avctx)
202
+static av_cold int adpcm_encode_close(AVCodecContext *avctx)
203 203
 {
204 204
     av_freep(&avctx->coded_frame);
205 205
 
... ...
@@ -244,7 +244,7 @@ static int decode_bytes(const uint8_t* inbuffer, uint8_t* out, int bytes){
244 244
 }
245 245
 
246 246
 
247
-static void init_atrac3_transforms(ATRAC3Context *q) {
247
+static av_cold void init_atrac3_transforms(ATRAC3Context *q) {
248 248
     float enc_window[256];
249 249
     float s;
250 250
     int i;
... ...
@@ -275,7 +275,7 @@ static void init_atrac3_transforms(ATRAC3Context *q) {
275 275
  * Atrac3 uninit, free all allocated memory
276 276
  */
277 277
 
278
-static int atrac3_decode_close(AVCodecContext *avctx)
278
+static av_cold int atrac3_decode_close(AVCodecContext *avctx)
279 279
 {
280 280
     ATRAC3Context *q = avctx->priv_data;
281 281
 
... ...
@@ -926,7 +926,7 @@ static int atrac3_decode_frame(AVCodecContext *avctx,
926 926
  * @param avctx     pointer to the AVCodecContext
927 927
  */
928 928
 
929
-static int atrac3_decode_init(AVCodecContext *avctx)
929
+static av_cold int atrac3_decode_init(AVCodecContext *avctx)
930 930
 {
931 931
     int i;
932 932
     const uint8_t *edata_ptr = avctx->extradata;
... ...
@@ -36,7 +36,7 @@ typedef struct BFIContext {
36 36
     uint8_t *dst;
37 37
 } BFIContext;
38 38
 
39
-static int bfi_decode_init(AVCodecContext * avctx)
39
+static av_cold int bfi_decode_init(AVCodecContext * avctx)
40 40
 {
41 41
     BFIContext *bfi = avctx->priv_data;
42 42
     avctx->pix_fmt = PIX_FMT_PAL8;
... ...
@@ -161,7 +161,7 @@ static int bfi_decode_frame(AVCodecContext * avctx, void *data,
161 161
     return buf_size;
162 162
 }
163 163
 
164
-static int bfi_decode_close(AVCodecContext * avctx)
164
+static av_cold int bfi_decode_close(AVCodecContext * avctx)
165 165
 {
166 166
     BFIContext *bfi = avctx->priv_data;
167 167
     if (bfi->frame.data[0])
... ...
@@ -183,7 +183,7 @@ static void dump_short_table(short* table, int size, int delimiter) {
183 183
 /*************** init functions ***************/
184 184
 
185 185
 /* table generator */
186
-static void init_pow2table(void){
186
+static av_cold void init_pow2table(void){
187 187
     int i;
188 188
     for (i=-63 ; i<64 ; i++){
189 189
             pow2tab[63+i]=     pow(2, i);
... ...
@@ -192,7 +192,7 @@ static void init_pow2table(void){
192 192
 }
193 193
 
194 194
 /* table generator */
195
-static void init_gain_table(COOKContext *q) {
195
+static av_cold void init_gain_table(COOKContext *q) {
196 196
     int i;
197 197
     q->gain_size_factor = q->samples_per_channel/8;
198 198
     for (i=0 ; i<23 ; i++) {
... ...
@@ -202,7 +202,7 @@ static void init_gain_table(COOKContext *q) {
202 202
 }
203 203
 
204 204
 
205
-static int init_cook_vlc_tables(COOKContext *q) {
205
+static av_cold int init_cook_vlc_tables(COOKContext *q) {
206 206
     int i, result;
207 207
 
208 208
     result = 0;
... ...
@@ -229,7 +229,7 @@ static int init_cook_vlc_tables(COOKContext *q) {
229 229
     return result;
230 230
 }
231 231
 
232
-static int init_cook_mlt(COOKContext *q) {
232
+static av_cold int init_cook_mlt(COOKContext *q) {
233 233
     int j;
234 234
     int mlt_size = q->samples_per_channel;
235 235
 
... ...
@@ -258,7 +258,7 @@ static const float *maybe_reformat_buffer32 (COOKContext *q, const float *ptr, i
258 258
         return ptr;
259 259
 }
260 260
 
261
-static void init_cplscales_table (COOKContext *q) {
261
+static av_cold void init_cplscales_table (COOKContext *q) {
262 262
     int i;
263 263
     for (i=0;i<5;i++)
264 264
         q->cplscales[i] = maybe_reformat_buffer32 (q, cplscales[i], (1<<(i+2))-1);
... ...
@@ -314,7 +314,7 @@ static inline int decode_bytes(const uint8_t* inbuffer, uint8_t* out, int bytes)
314 314
  * Cook uninit
315 315
  */
316 316
 
317
-static int cook_decode_close(AVCodecContext *avctx)
317
+static av_cold int cook_decode_close(AVCodecContext *avctx)
318 318
 {
319 319
     int i;
320 320
     COOKContext *q = avctx->priv_data;
... ...
@@ -29,7 +29,7 @@ typedef struct DVDSubParseContext {
29 29
     int packet_index;
30 30
 } DVDSubParseContext;
31 31
 
32
-static int dvdsub_parse_init(AVCodecParserContext *s)
32
+static av_cold int dvdsub_parse_init(AVCodecParserContext *s)
33 33
 {
34 34
     return 0;
35 35
 }
... ...
@@ -70,7 +70,7 @@ static int dvdsub_parse(AVCodecParserContext *s,
70 70
     return buf_size;
71 71
 }
72 72
 
73
-static void dvdsub_parse_close(AVCodecParserContext *s)
73
+static av_cold void dvdsub_parse_close(AVCodecParserContext *s)
74 74
 {
75 75
     DVDSubParseContext *pc = s->priv_data;
76 76
     av_freep(&pc->packet);
... ...
@@ -431,7 +431,7 @@ static int read_old_huffman_tables(HYuvContext *s){
431 431
 #endif
432 432
 }
433 433
 
434
-static void alloc_temp(HYuvContext *s){
434
+static av_cold void alloc_temp(HYuvContext *s){
435 435
     int i;
436 436
 
437 437
     if(s->bitstream_bpp<24){
... ...
@@ -445,7 +445,7 @@ static void alloc_temp(HYuvContext *s){
445 445
     }
446 446
 }
447 447
 
448
-static int common_init(AVCodecContext *avctx){
448
+static av_cold int common_init(AVCodecContext *avctx){
449 449
     HYuvContext *s = avctx->priv_data;
450 450
 
451 451
     s->avctx= avctx;
... ...
@@ -2170,7 +2170,7 @@ static uint8_t c_ccir_to_jpeg[256];
2170 2170
 static uint8_t c_jpeg_to_ccir[256];
2171 2171
 
2172 2172
 /* init various conversion tables */
2173
-static void img_convert_init(void)
2173
+static av_cold void img_convert_init(void)
2174 2174
 {
2175 2175
     int i;
2176 2176
     uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
... ...
@@ -156,7 +156,7 @@ typedef struct AMRContext {
156 156
     enum TXFrameType tx_frametype;
157 157
 } AMRContext;
158 158
 
159
-static int amr_nb_decode_init(AVCodecContext * avctx)
159
+static av_cold int amr_nb_decode_init(AVCodecContext * avctx)
160 160
 {
161 161
     AMRContext *s = avctx->priv_data;
162 162
 
... ...
@@ -184,7 +184,7 @@ static int amr_nb_decode_init(AVCodecContext * avctx)
184 184
     return 0;
185 185
 }
186 186
 
187
-static int amr_nb_encode_init(AVCodecContext * avctx)
187
+static av_cold int amr_nb_encode_init(AVCodecContext * avctx)
188 188
 {
189 189
     AMRContext *s = avctx->priv_data;
190 190
 
... ...
@@ -225,7 +225,7 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
225 225
     return 0;
226 226
 }
227 227
 
228
-static int amr_nb_encode_close(AVCodecContext * avctx)
228
+static av_cold int amr_nb_encode_close(AVCodecContext * avctx)
229 229
 {
230 230
     AMRContext *s = avctx->priv_data;
231 231
 
... ...
@@ -235,7 +235,7 @@ static int amr_nb_encode_close(AVCodecContext * avctx)
235 235
     return 0;
236 236
 }
237 237
 
238
-static int amr_nb_decode_close(AVCodecContext * avctx)
238
+static av_cold int amr_nb_decode_close(AVCodecContext * avctx)
239 239
 {
240 240
     AMRContext *s = avctx->priv_data;
241 241
 
... ...
@@ -362,7 +362,7 @@ typedef struct AMRContext {
362 362
     int enc_bitrate;
363 363
 } AMRContext;
364 364
 
365
-static int amr_nb_decode_init(AVCodecContext * avctx)
365
+static av_cold int amr_nb_decode_init(AVCodecContext * avctx)
366 366
 {
367 367
     AMRContext *s = avctx->priv_data;
368 368
 
... ...
@@ -385,7 +385,7 @@ static int amr_nb_decode_init(AVCodecContext * avctx)
385 385
     return 0;
386 386
 }
387 387
 
388
-static int amr_nb_encode_init(AVCodecContext * avctx)
388
+static av_cold int amr_nb_encode_init(AVCodecContext * avctx)
389 389
 {
390 390
     AMRContext *s = avctx->priv_data;
391 391
 
... ...
@@ -422,7 +422,7 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
422 422
     return 0;
423 423
 }
424 424
 
425
-static int amr_nb_decode_close(AVCodecContext * avctx)
425
+static av_cold int amr_nb_decode_close(AVCodecContext * avctx)
426 426
 {
427 427
     AMRContext *s = avctx->priv_data;
428 428
 
... ...
@@ -430,7 +430,7 @@ static int amr_nb_decode_close(AVCodecContext * avctx)
430 430
     return 0;
431 431
 }
432 432
 
433
-static int amr_nb_encode_close(AVCodecContext * avctx)
433
+static av_cold int amr_nb_encode_close(AVCodecContext * avctx)
434 434
 {
435 435
     AMRContext *s = avctx->priv_data;
436 436
 
... ...
@@ -63,7 +63,7 @@ static enum PixelFormat GetFfmpegChromaFormat(dirac_chroma_t dirac_pix_fmt)
63 63
     return PIX_FMT_NONE;
64 64
 }
65 65
 
66
-static int libdirac_decode_init(AVCodecContext *avccontext)
66
+static av_cold int libdirac_decode_init(AVCodecContext *avccontext)
67 67
 {
68 68
 
69 69
     FfmpegDiracDecoderParams *p_dirac_params = avccontext->priv_data ;
... ...
@@ -174,7 +174,7 @@ static int libdirac_decode_frame(AVCodecContext *avccontext,
174 174
 }
175 175
 
176 176
 
177
-static int libdirac_decode_close(AVCodecContext *avccontext)
177
+static av_cold int libdirac_decode_close(AVCodecContext *avccontext)
178 178
 {
179 179
     FfmpegDiracDecoderParams *p_dirac_params = avccontext->priv_data;
180 180
     dirac_decoder_close (p_dirac_params->p_decoder);
... ...
@@ -127,7 +127,7 @@ static VideoFormat GetDiracVideoFormatPreset (AVCodecContext *avccontext)
127 127
                  ff_dirac_video_formats[idx] : VIDEO_FORMAT_CUSTOM;
128 128
 }
129 129
 
130
-static int libdirac_encode_init(AVCodecContext *avccontext)
130
+static av_cold int libdirac_encode_init(AVCodecContext *avccontext)
131 131
 {
132 132
 
133 133
     FfmpegDiracEncoderParams* p_dirac_params = avccontext->priv_data;
... ...
@@ -386,7 +386,7 @@ static int libdirac_encode_frame(AVCodecContext *avccontext,
386 386
     return enc_size;
387 387
 }
388 388
 
389
-static int libdirac_encode_close(AVCodecContext *avccontext)
389
+static av_cold int libdirac_encode_close(AVCodecContext *avccontext)
390 390
 {
391 391
     FfmpegDiracEncoderParams* p_dirac_params  = avccontext->priv_data;
392 392
 
... ...
@@ -117,7 +117,7 @@ static void channel_setup(AVCodecContext *avctx)
117 117
 #endif
118 118
 }
119 119
 
120
-static int faac_init_mp4(AVCodecContext *avctx)
120
+static av_cold int faac_init_mp4(AVCodecContext *avctx)
121 121
 {
122 122
     FAACContext *s = avctx->priv_data;
123 123
     unsigned long samplerate;
... ...
@@ -135,7 +135,7 @@ static enum PixelFormat GetFfmpegChromaFormat(SchroChromaFormat schro_pix_fmt)
135 135
     return PIX_FMT_NONE;
136 136
 }
137 137
 
138
-static int libschroedinger_decode_init(AVCodecContext *avccontext)
138
+static av_cold int libschroedinger_decode_init(AVCodecContext *avccontext)
139 139
 {
140 140
 
141 141
     FfmpegSchroDecoderParams *p_schro_params = avccontext->priv_data ;
... ...
@@ -325,7 +325,7 @@ static int libschroedinger_decode_frame(AVCodecContext *avccontext,
325 325
 }
326 326
 
327 327
 
328
-static int libschroedinger_decode_close(AVCodecContext *avccontext)
328
+static av_cold int libschroedinger_decode_close(AVCodecContext *avccontext)
329 329
 {
330 330
     FfmpegSchroDecoderParams *p_schro_params = avccontext->priv_data;
331 331
     /* Free the decoder. */
... ...
@@ -77,7 +77,7 @@ static int concatenate_packet(unsigned int* offset, AVCodecContext* avc_context,
77 77
     return 0;
78 78
 }
79 79
 
80
-static int encode_init(AVCodecContext* avc_context)
80
+static av_cold int encode_init(AVCodecContext* avc_context)
81 81
 {
82 82
     theora_info t_info;
83 83
     theora_comment t_comment;
... ...
@@ -240,7 +240,7 @@ static int encode_frame(
240 240
     return o_packet.bytes;
241 241
 }
242 242
 
243
-static int encode_close(AVCodecContext* avc_context)
243
+static av_cold int encode_close(AVCodecContext* avc_context)
244 244
 {
245 245
     ogg_packet o_packet;
246 246
     TheoraContext *h = avc_context->priv_data;
... ...
@@ -50,7 +50,7 @@ typedef struct OggVorbisContext {
50 50
 } OggVorbisContext ;
51 51
 
52 52
 
53
-static int oggvorbis_init_encoder(vorbis_info *vi, AVCodecContext *avccontext) {
53
+static av_cold int oggvorbis_init_encoder(vorbis_info *vi, AVCodecContext *avccontext) {
54 54
     double cfreq;
55 55
 
56 56
     if(avccontext->flags & CODEC_FLAG_QSCALE) {
... ...
@@ -90,7 +90,7 @@ static int av_mpeg4_decode_header(AVCodecParserContext *s1,
90 90
     return ret;
91 91
 }
92 92
 
93
-static int mpeg4video_parse_init(AVCodecParserContext *s)
93
+static av_cold int mpeg4video_parse_init(AVCodecParserContext *s)
94 94
 {
95 95
     ParseContext1 *pc = s->priv_data;
96 96
 
... ...
@@ -81,7 +81,7 @@ int ff_mpa_decode_header(AVCodecContext *avctx, uint32_t head, int *sample_rate,
81 81
     return s->frame_size;
82 82
 }
83 83
 
84
-static int mpegaudio_parse_init(AVCodecParserContext *s1)
84
+static av_cold int mpegaudio_parse_init(AVCodecParserContext *s1)
85 85
 {
86 86
     MpegAudioParseContext *s = s1->priv_data;
87 87
     s->inbuf_ptr = s->inbuf;
... ...
@@ -250,7 +250,7 @@ static int pow_mult3[3] = {
250 250
 };
251 251
 #endif
252 252
 
253
-static void int_pow_init(void)
253
+static av_cold void int_pow_init(void)
254 254
 {
255 255
     int i, a;
256 256
 
... ...
@@ -308,7 +308,7 @@ static int int_pow(int i, int *exp_ptr)
308 308
 }
309 309
 #endif
310 310
 
311
-static int decode_init(AVCodecContext * avctx)
311
+static av_cold int decode_init(AVCodecContext * avctx)
312 312
 {
313 313
     MPADecodeContext *s = avctx->priv_data;
314 314
     static int init=0;
... ...
@@ -829,7 +829,7 @@ static inline int round_sample(int64_t *sum)
829 829
     op2(sum2, (w2)[7 * 64], tmp);\
830 830
 }
831 831
 
832
-void ff_mpa_synth_init(MPA_INT *window)
832
+void av_cold ff_mpa_synth_init(MPA_INT *window)
833 833
 {
834 834
     int i;
835 835
 
... ...
@@ -2444,7 +2444,7 @@ static int decode_init_mp3on4(AVCodecContext * avctx)
2444 2444
 }
2445 2445
 
2446 2446
 
2447
-static int decode_close_mp3on4(AVCodecContext * avctx)
2447
+static av_cold int decode_close_mp3on4(AVCodecContext * avctx)
2448 2448
 {
2449 2449
     MP3On4DecodeContext *s = avctx->priv_data;
2450 2450
     int i;
... ...
@@ -107,7 +107,7 @@ const uint8_t *ff_find_start_code(const uint8_t * restrict p, const uint8_t *end
107 107
 }
108 108
 
109 109
 /* init common dct for both encoder and decoder */
110
-int ff_dct_common_init(MpegEncContext *s)
110
+av_cold int ff_dct_common_init(MpegEncContext *s)
111 111
 {
112 112
     s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_c;
113 113
     s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_c;
... ...
@@ -396,7 +396,7 @@ void MPV_decode_defaults(MpegEncContext *s){
396 396
  * init common structure for both encoder and decoder.
397 397
  * this assumes that some variables like width/height are already set
398 398
  */
399
-int MPV_common_init(MpegEncContext *s)
399
+av_cold int MPV_common_init(MpegEncContext *s)
400 400
 {
401 401
     int y_size, c_size, yc_size, i, mb_array_size, mv_table_size, x, y, threads;
402 402
 
... ...
@@ -85,7 +85,7 @@ static uint8_t rl_length[NB_RL_TABLES][MAX_LEVEL+1][MAX_RUN+1][2];
85 85
 
86 86
 static uint8_t static_rl_table_store[NB_RL_TABLES][2][2*MAX_RUN + MAX_LEVEL + 3];
87 87
 
88
-static void common_init(MpegEncContext * s)
88
+static av_cold void common_init(MpegEncContext * s)
89 89
 {
90 90
     static int initialized=0;
91 91
 
... ...
@@ -163,7 +163,7 @@ void ff_msmpeg4_code012(PutBitContext *pb, int n)
163 163
     }
164 164
 }
165 165
 
166
-void ff_msmpeg4_encode_init(MpegEncContext *s)
166
+av_cold void ff_msmpeg4_encode_init(MpegEncContext *s)
167 167
 {
168 168
     static int init_done=0;
169 169
     int i;
... ...
@@ -995,7 +995,7 @@ VLC ff_inter_intra_vlc;
995 995
 
996 996
 /* This table is practically identical to the one from h263
997 997
  * except that it is inverted. */
998
-static void init_h263_dc_for_msmpeg4(void)
998
+static av_cold void init_h263_dc_for_msmpeg4(void)
999 999
 {
1000 1000
         int level, uni_code, uni_len;
1001 1001
 
... ...
@@ -1050,7 +1050,7 @@ static void init_h263_dc_for_msmpeg4(void)
1050 1050
 }
1051 1051
 
1052 1052
 /* init all vlc decoding tables */
1053
-int ff_msmpeg4_decode_init(MpegEncContext *s)
1053
+av_cold int ff_msmpeg4_decode_init(MpegEncContext *s)
1054 1054
 {
1055 1055
     static int done = 0;
1056 1056
     int i;
... ...
@@ -222,7 +222,7 @@ static float noise_samples[128];
222 222
 static DECLARE_ALIGNED_16(MPA_INT, mpa_window[512]);
223 223
 
224 224
 
225
-static void softclip_table_init(void) {
225
+static av_cold void softclip_table_init(void) {
226 226
     int i;
227 227
     double dfl = SOFTCLIP_THRESHOLD - 32767;
228 228
     float delta = 1.0 / -dfl;
... ...
@@ -232,7 +232,7 @@ static void softclip_table_init(void) {
232 232
 
233 233
 
234 234
 // random generated table
235
-static void rnd_table_init(void) {
235
+static av_cold void rnd_table_init(void) {
236 236
     int i,j;
237 237
     uint32_t ldw,hdw;
238 238
     uint64_t tmp64_1;
... ...
@@ -268,7 +268,7 @@ static void rnd_table_init(void) {
268 268
 }
269 269
 
270 270
 
271
-static void init_noise_samples(void) {
271
+static av_cold void init_noise_samples(void) {
272 272
     int i;
273 273
     int random_seed = 0;
274 274
     float delta = 1.0 / 16384.0;
... ...
@@ -279,7 +279,7 @@ static void init_noise_samples(void) {
279 279
 }
280 280
 
281 281
 
282
-static void qdm2_init_vlc(void)
282
+static av_cold void qdm2_init_vlc(void)
283 283
 {
284 284
     init_vlc (&vlc_tab_level, 8, 24,
285 285
         vlc_tab_level_huffbits, 1, 1,
... ...
@@ -1660,7 +1660,7 @@ static void qdm2_synthesis_filter (QDM2Context *q, int index)
1660 1660
  *
1661 1661
  * @param q    context
1662 1662
  */
1663
-static void qdm2_init(QDM2Context *q) {
1663
+static av_cold void qdm2_init(QDM2Context *q) {
1664 1664
     static int initialized = 0;
1665 1665
 
1666 1666
     if (initialized != 0)
... ...
@@ -1726,7 +1726,7 @@ static void dump_context(QDM2Context *q)
1726 1726
 /**
1727 1727
  * Init parameters from codec extradata
1728 1728
  */
1729
-static int qdm2_decode_init(AVCodecContext *avctx)
1729
+static av_cold int qdm2_decode_init(AVCodecContext *avctx)
1730 1730
 {
1731 1731
     QDM2Context *s = avctx->priv_data;
1732 1732
     uint8_t *extradata;
... ...
@@ -1896,7 +1896,7 @@ static int qdm2_decode_init(AVCodecContext *avctx)
1896 1896
 }
1897 1897
 
1898 1898
 
1899
-static int qdm2_decode_close(AVCodecContext *avctx)
1899
+static av_cold int qdm2_decode_close(AVCodecContext *avctx)
1900 1900
 {
1901 1901
     QDM2Context *s = avctx->priv_data;
1902 1902
 
... ...
@@ -49,7 +49,7 @@ static av_cold void roq_dpcm_table_init(void)
49 49
     }
50 50
 }
51 51
 
52
-static int roq_dpcm_encode_init(AVCodecContext *avctx)
52
+static av_cold int roq_dpcm_encode_init(AVCodecContext *avctx)
53 53
 {
54 54
     ROQDPCMContext *context = avctx->priv_data;
55 55
 
... ...
@@ -775,7 +775,7 @@ static int svq3_decode_slice_header(H264Context *h)
775 775
     return 0;
776 776
 }
777 777
 
778
-static int svq3_decode_init(AVCodecContext *avctx)
778
+static av_cold int svq3_decode_init(AVCodecContext *avctx)
779 779
 {
780 780
     MpegEncContext *const s = avctx->priv_data;
781 781
     H264Context *const h = avctx->priv_data;
... ...
@@ -2207,7 +2207,7 @@ static int theora_decode_tables(AVCodecContext *avctx, GetBitContext *gb)
2207 2207
     return 0;
2208 2208
 }
2209 2209
 
2210
-static int theora_decode_init(AVCodecContext *avctx)
2210
+static av_cold int theora_decode_init(AVCodecContext *avctx)
2211 2211
 {
2212 2212
     Vp3DecodeContext *s = avctx->priv_data;
2213 2213
     GetBitContext gb;