comparison c93.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 21121fd413fa
children a4104482ceef
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
43 #define HEIGHT 192 43 #define HEIGHT 192
44 44
45 #define C93_HAS_PALETTE 0x01 45 #define C93_HAS_PALETTE 0x01
46 #define C93_FIRST_FRAME 0x02 46 #define C93_FIRST_FRAME 0x02
47 47
48 static int decode_init(AVCodecContext *avctx) 48 static av_cold int decode_init(AVCodecContext *avctx)
49 { 49 {
50 avctx->pix_fmt = PIX_FMT_PAL8; 50 avctx->pix_fmt = PIX_FMT_PAL8;
51 return 0; 51 return 0;
52 } 52 }
53 53
54 static int decode_end(AVCodecContext *avctx) 54 static av_cold int decode_end(AVCodecContext *avctx)
55 { 55 {
56 C93DecoderContext * const c93 = avctx->priv_data; 56 C93DecoderContext * const c93 = avctx->priv_data;
57 57
58 if (c93->pictures[0].data[0]) 58 if (c93->pictures[0].data[0])
59 avctx->release_buffer(avctx, &c93->pictures[0]); 59 avctx->release_buffer(avctx, &c93->pictures[0]);