Mercurial > libavcodec.hg
comparison xan.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 | 2a2f9cb7f1b0 |
children | 5b3acf9fd50a |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
52 | 52 |
53 int frame_size; | 53 int frame_size; |
54 | 54 |
55 } XanContext; | 55 } XanContext; |
56 | 56 |
57 static int xan_decode_init(AVCodecContext *avctx) | 57 static av_cold int xan_decode_init(AVCodecContext *avctx) |
58 { | 58 { |
59 XanContext *s = avctx->priv_data; | 59 XanContext *s = avctx->priv_data; |
60 | 60 |
61 s->avctx = avctx; | 61 s->avctx = avctx; |
62 s->frame_size = 0; | 62 s->frame_size = 0; |
443 | 443 |
444 /* always report that the buffer was completely consumed */ | 444 /* always report that the buffer was completely consumed */ |
445 return buf_size; | 445 return buf_size; |
446 } | 446 } |
447 | 447 |
448 static int xan_decode_end(AVCodecContext *avctx) | 448 static av_cold int xan_decode_end(AVCodecContext *avctx) |
449 { | 449 { |
450 XanContext *s = avctx->priv_data; | 450 XanContext *s = avctx->priv_data; |
451 | 451 |
452 /* release the frames */ | 452 /* release the frames */ |
453 if (s->last_frame.data[0]) | 453 if (s->last_frame.data[0]) |