comparison tscc.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 07eeefc2825f
children a4104482ceef
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
251 /* 251 /*
252 * 252 *
253 * Init tscc decoder 253 * Init tscc decoder
254 * 254 *
255 */ 255 */
256 static int decode_init(AVCodecContext *avctx) 256 static av_cold int decode_init(AVCodecContext *avctx)
257 { 257 {
258 CamtasiaContext * const c = avctx->priv_data; 258 CamtasiaContext * const c = avctx->priv_data;
259 int zret; // Zlib return code 259 int zret; // Zlib return code
260 260
261 c->avctx = avctx; 261 c->avctx = avctx;
314 /* 314 /*
315 * 315 *
316 * Uninit tscc decoder 316 * Uninit tscc decoder
317 * 317 *
318 */ 318 */
319 static int decode_end(AVCodecContext *avctx) 319 static av_cold int decode_end(AVCodecContext *avctx)
320 { 320 {
321 CamtasiaContext * const c = avctx->priv_data; 321 CamtasiaContext * const c = avctx->priv_data;
322 322
323 av_freep(&c->decomp_buf); 323 av_freep(&c->decomp_buf);
324 324