comparison libfaac.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 134296160fc9
children 5b3acf9fd50a
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
29 29
30 typedef struct FaacAudioContext { 30 typedef struct FaacAudioContext {
31 faacEncHandle faac_handle; 31 faacEncHandle faac_handle;
32 } FaacAudioContext; 32 } FaacAudioContext;
33 33
34 static int Faac_encode_init(AVCodecContext *avctx) 34 static av_cold int Faac_encode_init(AVCodecContext *avctx)
35 { 35 {
36 FaacAudioContext *s = avctx->priv_data; 36 FaacAudioContext *s = avctx->priv_data;
37 faacEncConfigurationPtr faac_cfg; 37 faacEncConfigurationPtr faac_cfg;
38 unsigned long samples_input, max_bytes_output; 38 unsigned long samples_input, max_bytes_output;
39 39
130 buf_size); 130 buf_size);
131 131
132 return bytes_written; 132 return bytes_written;
133 } 133 }
134 134
135 static int Faac_encode_close(AVCodecContext *avctx) 135 static av_cold int Faac_encode_close(AVCodecContext *avctx)
136 { 136 {
137 FaacAudioContext *s = avctx->priv_data; 137 FaacAudioContext *s = avctx->priv_data;
138 138
139 av_freep(&avctx->coded_frame); 139 av_freep(&avctx->coded_frame);
140 av_freep(&avctx->extradata); 140 av_freep(&avctx->extradata);