Mercurial > libavcodec.hg
comparison atrac3.c @ 9007:043574c5c153 libavcodec
Add missing av_cold in static init/close functions.
Patch by Daniel Verkamp daniel at drv dot nu.
author | stefano |
---|---|
date | Sun, 22 Feb 2009 13:48:55 +0000 |
parents | e9d9d946f213 |
children | 7b62479a31ec |
comparison
equal
deleted
inserted
replaced
9006:37ac731fe32c | 9007:043574c5c153 |
---|---|
242 | 242 |
243 return off; | 243 return off; |
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 float enc_window[256]; | 248 float enc_window[256]; |
249 float s; | 249 float s; |
250 int i; | 250 int i; |
251 | 251 |
252 /* Generate the mdct window, for details see | 252 /* Generate the mdct window, for details see |
273 | 273 |
274 /** | 274 /** |
275 * Atrac3 uninit, free all allocated memory | 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 ATRAC3Context *q = avctx->priv_data; | 280 ATRAC3Context *q = avctx->priv_data; |
281 | 281 |
282 av_free(q->pUnits); | 282 av_free(q->pUnits); |
283 av_free(q->decoded_bytes_buffer); | 283 av_free(q->decoded_bytes_buffer); |
924 * Atrac3 initialization | 924 * Atrac3 initialization |
925 * | 925 * |
926 * @param avctx pointer to the AVCodecContext | 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 int i; | 931 int i; |
932 const uint8_t *edata_ptr = avctx->extradata; | 932 const uint8_t *edata_ptr = avctx->extradata; |
933 ATRAC3Context *q = avctx->priv_data; | 933 ATRAC3Context *q = avctx->priv_data; |
934 | 934 |