Mercurial > libavcodec.hg
comparison ac3enc.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 | dbb902bb2347 |
children | 5b3acf9fd50a |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
606 } | 606 } |
607 #endif | 607 #endif |
608 return 0; | 608 return 0; |
609 } | 609 } |
610 | 610 |
611 static int AC3_encode_init(AVCodecContext *avctx) | 611 static av_cold int AC3_encode_init(AVCodecContext *avctx) |
612 { | 612 { |
613 int freq = avctx->sample_rate; | 613 int freq = avctx->sample_rate; |
614 int bitrate = avctx->bit_rate; | 614 int bitrate = avctx->bit_rate; |
615 int channels = avctx->channels; | 615 int channels = avctx->channels; |
616 AC3EncodeContext *s = avctx->priv_data; | 616 AC3EncodeContext *s = avctx->priv_data; |
1253 bap[i], mdct_coef[i], exp_samples[i], i); | 1253 bap[i], mdct_coef[i], exp_samples[i], i); |
1254 } | 1254 } |
1255 return output_frame_end(s); | 1255 return output_frame_end(s); |
1256 } | 1256 } |
1257 | 1257 |
1258 static int AC3_encode_close(AVCodecContext *avctx) | 1258 static av_cold int AC3_encode_close(AVCodecContext *avctx) |
1259 { | 1259 { |
1260 av_freep(&avctx->coded_frame); | 1260 av_freep(&avctx->coded_frame); |
1261 return 0; | 1261 return 0; |
1262 } | 1262 } |
1263 | 1263 |