Mercurial > libavcodec.hg
comparison flacenc.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 | 56592543346c |
children | 85acd5166cf8 |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
167 } | 167 } |
168 } | 168 } |
169 return blocksize; | 169 return blocksize; |
170 } | 170 } |
171 | 171 |
172 static int flac_encode_init(AVCodecContext *avctx) | 172 static av_cold int flac_encode_init(AVCodecContext *avctx) |
173 { | 173 { |
174 int freq = avctx->sample_rate; | 174 int freq = avctx->sample_rate; |
175 int channels = avctx->channels; | 175 int channels = avctx->channels; |
176 FlacEncodeContext *s = avctx->priv_data; | 176 FlacEncodeContext *s = avctx->priv_data; |
177 int i, level; | 177 int i, level; |
1484 | 1484 |
1485 s->frame_count++; | 1485 s->frame_count++; |
1486 return out_bytes; | 1486 return out_bytes; |
1487 } | 1487 } |
1488 | 1488 |
1489 static int flac_encode_close(AVCodecContext *avctx) | 1489 static av_cold int flac_encode_close(AVCodecContext *avctx) |
1490 { | 1490 { |
1491 av_freep(&avctx->extradata); | 1491 av_freep(&avctx->extradata); |
1492 avctx->extradata_size = 0; | 1492 avctx->extradata_size = 0; |
1493 av_freep(&avctx->coded_frame); | 1493 av_freep(&avctx->coded_frame); |
1494 return 0; | 1494 return 0; |