Mercurial > libavcodec.hg
comparison dvbsub_parser.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 | 0d1cc37d9430 |
children | de032bcdeff9 |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
36 int packet_start; | 36 int packet_start; |
37 int packet_index; | 37 int packet_index; |
38 int in_packet; | 38 int in_packet; |
39 } DVBSubParseContext; | 39 } DVBSubParseContext; |
40 | 40 |
41 static int dvbsub_parse_init(AVCodecParserContext *s) | 41 static av_cold int dvbsub_parse_init(AVCodecParserContext *s) |
42 { | 42 { |
43 DVBSubParseContext *pc = s->priv_data; | 43 DVBSubParseContext *pc = s->priv_data; |
44 pc->packet_buf = av_malloc(PARSE_BUF_SIZE); | 44 pc->packet_buf = av_malloc(PARSE_BUF_SIZE); |
45 | 45 |
46 return 0; | 46 return 0; |
179 s->last_pts = s->pts; | 179 s->last_pts = s->pts; |
180 | 180 |
181 return buf_size; | 181 return buf_size; |
182 } | 182 } |
183 | 183 |
184 static void dvbsub_parse_close(AVCodecParserContext *s) | 184 static av_cold void dvbsub_parse_close(AVCodecParserContext *s) |
185 { | 185 { |
186 DVBSubParseContext *pc = s->priv_data; | 186 DVBSubParseContext *pc = s->priv_data; |
187 av_freep(&pc->packet_buf); | 187 av_freep(&pc->packet_buf); |
188 } | 188 } |
189 | 189 |