Mercurial > libavcodec.hg
comparison flicvideo.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 | ecbe9565dcae |
children | 5df0c730234d |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
74 unsigned int palette[256]; | 74 unsigned int palette[256]; |
75 int new_palette; | 75 int new_palette; |
76 int fli_type; /* either 0xAF11 or 0xAF12, affects palette resolution */ | 76 int fli_type; /* either 0xAF11 or 0xAF12, affects palette resolution */ |
77 } FlicDecodeContext; | 77 } FlicDecodeContext; |
78 | 78 |
79 static int flic_decode_init(AVCodecContext *avctx) | 79 static av_cold int flic_decode_init(AVCodecContext *avctx) |
80 { | 80 { |
81 FlicDecodeContext *s = avctx->priv_data; | 81 FlicDecodeContext *s = avctx->priv_data; |
82 unsigned char *fli_header = (unsigned char *)avctx->extradata; | 82 unsigned char *fli_header = (unsigned char *)avctx->extradata; |
83 int depth; | 83 int depth; |
84 | 84 |
724 av_log(avctx, AV_LOG_ERROR, "Unknown FLC format, my science cannot explain how this happened.\n"); | 724 av_log(avctx, AV_LOG_ERROR, "Unknown FLC format, my science cannot explain how this happened.\n"); |
725 return -1; | 725 return -1; |
726 } | 726 } |
727 | 727 |
728 | 728 |
729 static int flic_decode_end(AVCodecContext *avctx) | 729 static av_cold int flic_decode_end(AVCodecContext *avctx) |
730 { | 730 { |
731 FlicDecodeContext *s = avctx->priv_data; | 731 FlicDecodeContext *s = avctx->priv_data; |
732 | 732 |
733 if (s->frame.data[0]) | 733 if (s->frame.data[0]) |
734 avctx->release_buffer(avctx, &s->frame); | 734 avctx->release_buffer(avctx, &s->frame); |