Mercurial > libavcodec.hg
comparison adxenc.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 | b1b3dd3324ae |
children | a4104482ceef |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
108 AV_WB32(buf+0x18,0x00000000); | 108 AV_WB32(buf+0x18,0x00000000); |
109 memcpy(buf+0x1c,"\0\0(c)CRI",8); | 109 memcpy(buf+0x1c,"\0\0(c)CRI",8); |
110 return 0x20+4; | 110 return 0x20+4; |
111 } | 111 } |
112 | 112 |
113 static int adx_encode_init(AVCodecContext *avctx) | 113 static av_cold int adx_encode_init(AVCodecContext *avctx) |
114 { | 114 { |
115 if (avctx->channels > 2) | 115 if (avctx->channels > 2) |
116 return -1; /* only stereo or mono =) */ | 116 return -1; /* only stereo or mono =) */ |
117 avctx->frame_size = 32; | 117 avctx->frame_size = 32; |
118 | 118 |
124 av_log(avctx, AV_LOG_DEBUG, "adx encode init\n"); | 124 av_log(avctx, AV_LOG_DEBUG, "adx encode init\n"); |
125 | 125 |
126 return 0; | 126 return 0; |
127 } | 127 } |
128 | 128 |
129 static int adx_encode_close(AVCodecContext *avctx) | 129 static av_cold int adx_encode_close(AVCodecContext *avctx) |
130 { | 130 { |
131 av_freep(&avctx->coded_frame); | 131 av_freep(&avctx->coded_frame); |
132 | 132 |
133 return 0; | 133 return 0; |
134 } | 134 } |