Mercurial > libavcodec.hg
comparison dvdsub_parser.c @ 9007:043574c5c153 libavcodec
Add missing av_cold in static init/close functions.
Patch by Daniel Verkamp daniel at drv dot nu.
author | stefano |
---|---|
date | Sun, 22 Feb 2009 13:48:55 +0000 |
parents | 04423b2f6e0b |
children |
comparison
equal
deleted
inserted
replaced
9006:37ac731fe32c | 9007:043574c5c153 |
---|---|
27 uint8_t *packet; | 27 uint8_t *packet; |
28 int packet_len; | 28 int packet_len; |
29 int packet_index; | 29 int packet_index; |
30 } DVDSubParseContext; | 30 } DVDSubParseContext; |
31 | 31 |
32 static int dvdsub_parse_init(AVCodecParserContext *s) | 32 static av_cold int dvdsub_parse_init(AVCodecParserContext *s) |
33 { | 33 { |
34 return 0; | 34 return 0; |
35 } | 35 } |
36 | 36 |
37 static int dvdsub_parse(AVCodecParserContext *s, | 37 static int dvdsub_parse(AVCodecParserContext *s, |
68 *poutbuf = NULL; | 68 *poutbuf = NULL; |
69 *poutbuf_size = 0; | 69 *poutbuf_size = 0; |
70 return buf_size; | 70 return buf_size; |
71 } | 71 } |
72 | 72 |
73 static void dvdsub_parse_close(AVCodecParserContext *s) | 73 static av_cold void dvdsub_parse_close(AVCodecParserContext *s) |
74 { | 74 { |
75 DVDSubParseContext *pc = s->priv_data; | 75 DVDSubParseContext *pc = s->priv_data; |
76 av_freep(&pc->packet); | 76 av_freep(&pc->packet); |
77 } | 77 } |
78 | 78 |