Mercurial > libavcodec.hg
comparison liba52.c @ 6517:48759bfbd073 libavcodec
Apply 'cold' attribute to init/uninit functions in libavcodec
| author | zuxy |
|---|---|
| date | Fri, 21 Mar 2008 03:11:20 +0000 |
| parents | a14abb3d08aa |
| children | 5b3acf9fd50a |
comparison
equal
deleted
inserted
replaced
| 6516:dbb902bb2347 | 6517:48759bfbd073 |
|---|---|
| 75 av_log( NULL, AV_LOG_ERROR, "A52 Decoder - function '%s' can't be resolved\n", symbol); | 75 av_log( NULL, AV_LOG_ERROR, "A52 Decoder - function '%s' can't be resolved\n", symbol); |
| 76 return f; | 76 return f; |
| 77 } | 77 } |
| 78 #endif | 78 #endif |
| 79 | 79 |
| 80 static int a52_decode_init(AVCodecContext *avctx) | 80 static av_cold int a52_decode_init(AVCodecContext *avctx) |
| 81 { | 81 { |
| 82 AC3DecodeState *s = avctx->priv_data; | 82 AC3DecodeState *s = avctx->priv_data; |
| 83 | 83 |
| 84 #ifdef CONFIG_LIBA52BIN | 84 #ifdef CONFIG_LIBA52BIN |
| 85 s->handle = dlopen(liba52name, RTLD_LAZY); | 85 s->handle = dlopen(liba52name, RTLD_LAZY); |
| 201 } | 201 } |
| 202 *data_size = 6 * avctx->channels * 256 * sizeof(int16_t); | 202 *data_size = 6 * avctx->channels * 256 * sizeof(int16_t); |
| 203 return len; | 203 return len; |
| 204 } | 204 } |
| 205 | 205 |
| 206 static int a52_decode_end(AVCodecContext *avctx) | 206 static av_cold int a52_decode_end(AVCodecContext *avctx) |
| 207 { | 207 { |
| 208 AC3DecodeState *s = avctx->priv_data; | 208 AC3DecodeState *s = avctx->priv_data; |
| 209 s->a52_free(s->state); | 209 s->a52_free(s->state); |
| 210 #ifdef CONFIG_LIBA52BIN | 210 #ifdef CONFIG_LIBA52BIN |
| 211 dlclose(s->handle); | 211 dlclose(s->handle); |
