Mercurial > libavcodec.hg
comparison flac.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 | 931ca319f2fe |
children | a4104482ceef |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
96 | 96 |
97 static void metadata_streaminfo(FLACContext *s); | 97 static void metadata_streaminfo(FLACContext *s); |
98 static void allocate_buffers(FLACContext *s); | 98 static void allocate_buffers(FLACContext *s); |
99 static int metadata_parse(FLACContext *s); | 99 static int metadata_parse(FLACContext *s); |
100 | 100 |
101 static int flac_decode_init(AVCodecContext * avctx) | 101 static av_cold int flac_decode_init(AVCodecContext * avctx) |
102 { | 102 { |
103 FLACContext *s = avctx->priv_data; | 103 FLACContext *s = avctx->priv_data; |
104 s->avctx = avctx; | 104 s->avctx = avctx; |
105 | 105 |
106 if (avctx->extradata_size > 4) { | 106 if (avctx->extradata_size > 4) { |
735 return input_buf_size; | 735 return input_buf_size; |
736 }else | 736 }else |
737 return i; | 737 return i; |
738 } | 738 } |
739 | 739 |
740 static int flac_decode_close(AVCodecContext *avctx) | 740 static av_cold int flac_decode_close(AVCodecContext *avctx) |
741 { | 741 { |
742 FLACContext *s = avctx->priv_data; | 742 FLACContext *s = avctx->priv_data; |
743 int i; | 743 int i; |
744 | 744 |
745 for (i = 0; i < s->channels; i++) | 745 for (i = 0; i < s->channels; i++) |