Mercurial > libavcodec.hg
comparison libdiracdec.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 | e9d9d946f213 |
children | 54bc8a2727b0 |
comparison
equal
deleted
inserted
replaced
9006:37ac731fe32c | 9007:043574c5c153 |
---|---|
61 } | 61 } |
62 } | 62 } |
63 return PIX_FMT_NONE; | 63 return PIX_FMT_NONE; |
64 } | 64 } |
65 | 65 |
66 static int libdirac_decode_init(AVCodecContext *avccontext) | 66 static av_cold int libdirac_decode_init(AVCodecContext *avccontext) |
67 { | 67 { |
68 | 68 |
69 FfmpegDiracDecoderParams *p_dirac_params = avccontext->priv_data ; | 69 FfmpegDiracDecoderParams *p_dirac_params = avccontext->priv_data ; |
70 p_dirac_params->p_decoder = dirac_decoder_init(avccontext->debug); | 70 p_dirac_params->p_decoder = dirac_decoder_init(avccontext->debug); |
71 | 71 |
172 | 172 |
173 return buf_size; | 173 return buf_size; |
174 } | 174 } |
175 | 175 |
176 | 176 |
177 static int libdirac_decode_close(AVCodecContext *avccontext) | 177 static av_cold int libdirac_decode_close(AVCodecContext *avccontext) |
178 { | 178 { |
179 FfmpegDiracDecoderParams *p_dirac_params = avccontext->priv_data; | 179 FfmpegDiracDecoderParams *p_dirac_params = avccontext->priv_data; |
180 dirac_decoder_close (p_dirac_params->p_decoder); | 180 dirac_decoder_close (p_dirac_params->p_decoder); |
181 | 181 |
182 av_freep(&p_dirac_params->p_out_frame_buf); | 182 av_freep(&p_dirac_params->p_out_frame_buf); |