Mercurial > libavcodec.hg
comparison txd.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 | 911d4939e3c8 |
children | 6eeb19edcee3 |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
26 | 26 |
27 typedef struct TXDContext { | 27 typedef struct TXDContext { |
28 AVFrame picture; | 28 AVFrame picture; |
29 } TXDContext; | 29 } TXDContext; |
30 | 30 |
31 static int txd_init(AVCodecContext *avctx) { | 31 static av_cold int txd_init(AVCodecContext *avctx) { |
32 TXDContext *s = avctx->priv_data; | 32 TXDContext *s = avctx->priv_data; |
33 | 33 |
34 avcodec_get_frame_defaults(&s->picture); | 34 avcodec_get_frame_defaults(&s->picture); |
35 avctx->coded_frame = &s->picture; | 35 avctx->coded_frame = &s->picture; |
36 | 36 |
141 unsupported: | 141 unsupported: |
142 av_log(avctx, AV_LOG_ERROR, "unsupported d3d format (%08x)\n", d3d_format); | 142 av_log(avctx, AV_LOG_ERROR, "unsupported d3d format (%08x)\n", d3d_format); |
143 return -1; | 143 return -1; |
144 } | 144 } |
145 | 145 |
146 static int txd_end(AVCodecContext *avctx) { | 146 static av_cold int txd_end(AVCodecContext *avctx) { |
147 TXDContext *s = avctx->priv_data; | 147 TXDContext *s = avctx->priv_data; |
148 | 148 |
149 if (s->picture.data[0]) | 149 if (s->picture.data[0]) |
150 avctx->release_buffer(avctx, &s->picture); | 150 avctx->release_buffer(avctx, &s->picture); |
151 | 151 |