summaryrefslogtreecommitdiff
path: root/libavcodec/pcm.c
diff options
context:
space:
mode:
authorZuxy Meng <zuxy.meng@gmail.com>2008-03-21 03:11:20 +0000
committerZuxy Meng <zuxy.meng@gmail.com>2008-03-21 03:11:20 +0000
commit98a6fff98c3f2e963783e52fb193529bdc14e040 (patch)
treed950fcf03110d5716c0d348f0ffbbc5f459b71aa /libavcodec/pcm.c
parent77ab59eb7ff28d8183ea51c5a46aab3b430edd9c (diff)
Apply 'cold' attribute to init/uninit functions in libavcodec
Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/pcm.c')
-rw-r--r--libavcodec/pcm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c
index 926c6f0109..661dfc6f09 100644
--- a/libavcodec/pcm.c
+++ b/libavcodec/pcm.c
@@ -44,7 +44,7 @@
* alaw2linear() - Convert an A-law value to 16-bit linear PCM
*
*/
-static int alaw2linear(unsigned char a_val)
+static av_cold int alaw2linear(unsigned char a_val)
{
int t;
int seg;
@@ -59,7 +59,7 @@ static int alaw2linear(unsigned char a_val)
return ((a_val & SIGN_BIT) ? t : -t);
}
-static int ulaw2linear(unsigned char u_val)
+static av_cold int ulaw2linear(unsigned char u_val)
{
int t;
@@ -80,7 +80,7 @@ static int ulaw2linear(unsigned char u_val)
static uint8_t linear_to_alaw[16384];
static uint8_t linear_to_ulaw[16384];
-static void build_xlaw_table(uint8_t *linear_to_xlaw,
+static av_cold void build_xlaw_table(uint8_t *linear_to_xlaw,
int (*xlaw2linear)(unsigned char),
int mask)
{
@@ -104,7 +104,7 @@ static void build_xlaw_table(uint8_t *linear_to_xlaw,
linear_to_xlaw[0] = linear_to_xlaw[1];
}
-static int pcm_encode_init(AVCodecContext *avctx)
+static av_cold int pcm_encode_init(AVCodecContext *avctx)
{
avctx->frame_size = 1;
switch(avctx->codec->id) {
@@ -154,7 +154,7 @@ static int pcm_encode_init(AVCodecContext *avctx)
return 0;
}
-static int pcm_encode_close(AVCodecContext *avctx)
+static av_cold int pcm_encode_close(AVCodecContext *avctx)
{
av_freep(&avctx->coded_frame);
@@ -325,7 +325,7 @@ typedef struct PCMDecode {
short table[256];
} PCMDecode;
-static int pcm_decode_init(AVCodecContext * avctx)
+static av_cold int pcm_decode_init(AVCodecContext * avctx)
{
PCMDecode *s = avctx->priv_data;
int i;