Mercurial > libavcodec.hg
comparison roqaudioenc.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 | 7c6a0470eb63 |
children | 5b3acf9fd50a |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
35 typedef struct | 35 typedef struct |
36 { | 36 { |
37 short lastSample[2]; | 37 short lastSample[2]; |
38 } ROQDPCMContext_t; | 38 } ROQDPCMContext_t; |
39 | 39 |
40 static void roq_dpcm_table_init(void) | 40 static av_cold void roq_dpcm_table_init(void) |
41 { | 41 { |
42 int i; | 42 int i; |
43 | 43 |
44 /* Create a table of quick DPCM values */ | 44 /* Create a table of quick DPCM values */ |
45 for (i=0; i<MAX_DPCM; i++) { | 45 for (i=0; i<MAX_DPCM; i++) { |
156 | 156 |
157 /* Return the result size */ | 157 /* Return the result size */ |
158 return out - frame; | 158 return out - frame; |
159 } | 159 } |
160 | 160 |
161 static int roq_dpcm_encode_close(AVCodecContext *avctx) | 161 static av_cold int roq_dpcm_encode_close(AVCodecContext *avctx) |
162 { | 162 { |
163 av_freep(&avctx->coded_frame); | 163 av_freep(&avctx->coded_frame); |
164 | 164 |
165 return 0; | 165 return 0; |
166 } | 166 } |