Mercurial > libavcodec.hg
comparison libvorbis.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 | 5a61e8e2f65c |
children | 5b3acf9fd50a |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
79 } | 79 } |
80 | 80 |
81 return vorbis_encode_setup_init(vi); | 81 return vorbis_encode_setup_init(vi); |
82 } | 82 } |
83 | 83 |
84 static int oggvorbis_encode_init(AVCodecContext *avccontext) { | 84 static av_cold int oggvorbis_encode_init(AVCodecContext *avccontext) { |
85 OggVorbisContext *context = avccontext->priv_data ; | 85 OggVorbisContext *context = avccontext->priv_data ; |
86 ogg_packet header, header_comm, header_code; | 86 ogg_packet header, header_comm, header_code; |
87 uint8_t *p; | 87 uint8_t *p; |
88 unsigned int offset, len; | 88 unsigned int offset, len; |
89 | 89 |
189 | 189 |
190 return l; | 190 return l; |
191 } | 191 } |
192 | 192 |
193 | 193 |
194 static int oggvorbis_encode_close(AVCodecContext *avccontext) { | 194 static av_cold int oggvorbis_encode_close(AVCodecContext *avccontext) { |
195 OggVorbisContext *context = avccontext->priv_data ; | 195 OggVorbisContext *context = avccontext->priv_data ; |
196 /* ogg_packet op ; */ | 196 /* ogg_packet op ; */ |
197 | 197 |
198 vorbis_analysis_wrote(&context->vd, 0) ; /* notify vorbisenc this is EOF */ | 198 vorbis_analysis_wrote(&context->vd, 0) ; /* notify vorbisenc this is EOF */ |
199 | 199 |