comparison dnxhddec.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 7fa807dd7958
children a4104482ceef
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
45 } DNXHDContext; 45 } DNXHDContext;
46 46
47 #define DNXHD_VLC_BITS 9 47 #define DNXHD_VLC_BITS 9
48 #define DNXHD_DC_VLC_BITS 7 48 #define DNXHD_DC_VLC_BITS 7
49 49
50 static int dnxhd_decode_init(AVCodecContext *avctx) 50 static av_cold int dnxhd_decode_init(AVCodecContext *avctx)
51 { 51 {
52 DNXHDContext *ctx = avctx->priv_data; 52 DNXHDContext *ctx = avctx->priv_data;
53 53
54 ctx->avctx = avctx; 54 ctx->avctx = avctx;
55 dsputil_init(&ctx->dsp, avctx); 55 dsputil_init(&ctx->dsp, avctx);
318 *picture = ctx->picture; 318 *picture = ctx->picture;
319 *data_size = sizeof(AVPicture); 319 *data_size = sizeof(AVPicture);
320 return buf_size; 320 return buf_size;
321 } 321 }
322 322
323 static int dnxhd_decode_close(AVCodecContext *avctx) 323 static av_cold int dnxhd_decode_close(AVCodecContext *avctx)
324 { 324 {
325 DNXHDContext *ctx = avctx->priv_data; 325 DNXHDContext *ctx = avctx->priv_data;
326 326
327 if (ctx->picture.data[0]) 327 if (ctx->picture.data[0])
328 avctx->release_buffer(avctx, &ctx->picture); 328 avctx->release_buffer(avctx, &ctx->picture);