comparison truemotion2.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 6412f1a039ba
children 5df0c730234d
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
816 *(AVFrame*)data = l->pic; 816 *(AVFrame*)data = l->pic;
817 817
818 return buf_size; 818 return buf_size;
819 } 819 }
820 820
821 static int decode_init(AVCodecContext *avctx){ 821 static av_cold int decode_init(AVCodecContext *avctx){
822 TM2Context * const l = avctx->priv_data; 822 TM2Context * const l = avctx->priv_data;
823 int i; 823 int i;
824 824
825 if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) { 825 if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0) {
826 return -1; 826 return -1;
853 l->cur = 0; 853 l->cur = 0;
854 854
855 return 0; 855 return 0;
856 } 856 }
857 857
858 static int decode_end(AVCodecContext *avctx){ 858 static av_cold int decode_end(AVCodecContext *avctx){
859 TM2Context * const l = avctx->priv_data; 859 TM2Context * const l = avctx->priv_data;
860 int i; 860 int i;
861 861
862 if(l->last) 862 if(l->last)
863 av_free(l->last); 863 av_free(l->last);