Mercurial > libavcodec.hg
comparison vc1.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 | 493dc59d469a |
children | 5b3acf9fd50a |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
3810 | 3810 |
3811 /** Initialize a VC1/WMV3 decoder | 3811 /** Initialize a VC1/WMV3 decoder |
3812 * @todo TODO: Handle VC-1 IDUs (Transport level?) | 3812 * @todo TODO: Handle VC-1 IDUs (Transport level?) |
3813 * @todo TODO: Decypher remaining bits in extra_data | 3813 * @todo TODO: Decypher remaining bits in extra_data |
3814 */ | 3814 */ |
3815 static int vc1_decode_init(AVCodecContext *avctx) | 3815 static av_cold int vc1_decode_init(AVCodecContext *avctx) |
3816 { | 3816 { |
3817 VC1Context *v = avctx->priv_data; | 3817 VC1Context *v = avctx->priv_data; |
3818 MpegEncContext *s = &v->s; | 3818 MpegEncContext *s = &v->s; |
3819 GetBitContext gb; | 3819 GetBitContext gb; |
3820 | 3820 |
4107 | 4107 |
4108 | 4108 |
4109 /** Close a VC1/WMV3 decoder | 4109 /** Close a VC1/WMV3 decoder |
4110 * @warning Initial try at using MpegEncContext stuff | 4110 * @warning Initial try at using MpegEncContext stuff |
4111 */ | 4111 */ |
4112 static int vc1_decode_end(AVCodecContext *avctx) | 4112 static av_cold int vc1_decode_end(AVCodecContext *avctx) |
4113 { | 4113 { |
4114 VC1Context *v = avctx->priv_data; | 4114 VC1Context *v = avctx->priv_data; |
4115 | 4115 |
4116 av_freep(&v->hrd_rate); | 4116 av_freep(&v->hrd_rate); |
4117 av_freep(&v->hrd_buffer); | 4117 av_freep(&v->hrd_buffer); |