Mercurial > libavcodec.hg
comparison aasc.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 | b42a510e0939 |
children | 75b2158c583a |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
42 av_log(s->avctx, AV_LOG_ERROR, " AASC: stream ptr just went out of bounds (fetch)\n"); \ | 42 av_log(s->avctx, AV_LOG_ERROR, " AASC: stream ptr just went out of bounds (fetch)\n"); \ |
43 break; \ | 43 break; \ |
44 } \ | 44 } \ |
45 stream_byte = buf[stream_ptr++]; | 45 stream_byte = buf[stream_ptr++]; |
46 | 46 |
47 static int aasc_decode_init(AVCodecContext *avctx) | 47 static av_cold int aasc_decode_init(AVCodecContext *avctx) |
48 { | 48 { |
49 AascContext *s = avctx->priv_data; | 49 AascContext *s = avctx->priv_data; |
50 | 50 |
51 s->avctx = avctx; | 51 s->avctx = avctx; |
52 | 52 |
148 | 148 |
149 /* report that the buffer was completely consumed */ | 149 /* report that the buffer was completely consumed */ |
150 return buf_size; | 150 return buf_size; |
151 } | 151 } |
152 | 152 |
153 static int aasc_decode_end(AVCodecContext *avctx) | 153 static av_cold int aasc_decode_end(AVCodecContext *avctx) |
154 { | 154 { |
155 AascContext *s = avctx->priv_data; | 155 AascContext *s = avctx->priv_data; |
156 | 156 |
157 /* release the last frame */ | 157 /* release the last frame */ |
158 if (s->frame.data[0]) | 158 if (s->frame.data[0]) |