Mercurial > libavcodec.hg
comparison rawdec.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 | 66969d0e4a6d |
children | 5b3acf9fd50a |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
62 tags++; | 62 tags++; |
63 } | 63 } |
64 return PIX_FMT_YUV420P; | 64 return PIX_FMT_YUV420P; |
65 } | 65 } |
66 | 66 |
67 static int raw_init_decoder(AVCodecContext *avctx) | 67 static av_cold int raw_init_decoder(AVCodecContext *avctx) |
68 { | 68 { |
69 RawVideoContext *context = avctx->priv_data; | 69 RawVideoContext *context = avctx->priv_data; |
70 | 70 |
71 if (avctx->codec_tag == MKTAG('r','a','w',' ')) | 71 if (avctx->codec_tag == MKTAG('r','a','w',' ')) |
72 avctx->pix_fmt = findPixelFormat(pixelFormatBpsMOV, avctx->bits_per_sample); | 72 avctx->pix_fmt = findPixelFormat(pixelFormatBpsMOV, avctx->bits_per_sample); |
143 | 143 |
144 *data_size = sizeof(AVPicture); | 144 *data_size = sizeof(AVPicture); |
145 return buf_size; | 145 return buf_size; |
146 } | 146 } |
147 | 147 |
148 static int raw_close_decoder(AVCodecContext *avctx) | 148 static av_cold int raw_close_decoder(AVCodecContext *avctx) |
149 { | 149 { |
150 RawVideoContext *context = avctx->priv_data; | 150 RawVideoContext *context = avctx->priv_data; |
151 | 151 |
152 av_freep(&context->buffer); | 152 av_freep(&context->buffer); |
153 return 0; | 153 return 0; |