Mercurial > libavcodec.hg
comparison libmp3lame.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 | 11a44fc273a5 |
children | 5b3acf9fd50a |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
34 int stereo; | 34 int stereo; |
35 uint8_t buffer[BUFFER_SIZE]; | 35 uint8_t buffer[BUFFER_SIZE]; |
36 int buffer_index; | 36 int buffer_index; |
37 } Mp3AudioContext; | 37 } Mp3AudioContext; |
38 | 38 |
39 static int MP3lame_encode_init(AVCodecContext *avctx) | 39 static av_cold int MP3lame_encode_init(AVCodecContext *avctx) |
40 { | 40 { |
41 Mp3AudioContext *s = avctx->priv_data; | 41 Mp3AudioContext *s = avctx->priv_data; |
42 | 42 |
43 if (avctx->channels > 2) | 43 if (avctx->channels > 2) |
44 return -1; | 44 return -1; |
196 return len; | 196 return len; |
197 }else | 197 }else |
198 return 0; | 198 return 0; |
199 } | 199 } |
200 | 200 |
201 static int MP3lame_encode_close(AVCodecContext *avctx) | 201 static av_cold int MP3lame_encode_close(AVCodecContext *avctx) |
202 { | 202 { |
203 Mp3AudioContext *s = avctx->priv_data; | 203 Mp3AudioContext *s = avctx->priv_data; |
204 | 204 |
205 av_freep(&avctx->coded_frame); | 205 av_freep(&avctx->coded_frame); |
206 | 206 |