comparison vqavideo.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 814c8bd77d91
children 6eeb19edcee3
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
125 int partial_countdown; 125 int partial_countdown;
126 int partial_count; 126 int partial_count;
127 127
128 } VqaContext; 128 } VqaContext;
129 129
130 static int vqa_decode_init(AVCodecContext *avctx) 130 static av_cold int vqa_decode_init(AVCodecContext *avctx)
131 { 131 {
132 VqaContext *s = avctx->priv_data; 132 VqaContext *s = avctx->priv_data;
133 unsigned char *vqa_header; 133 unsigned char *vqa_header;
134 int i, j, codebook_index; 134 int i, j, codebook_index;
135 135
590 590
591 /* report that the buffer was completely consumed */ 591 /* report that the buffer was completely consumed */
592 return buf_size; 592 return buf_size;
593 } 593 }
594 594
595 static int vqa_decode_end(AVCodecContext *avctx) 595 static av_cold int vqa_decode_end(AVCodecContext *avctx)
596 { 596 {
597 VqaContext *s = avctx->priv_data; 597 VqaContext *s = avctx->priv_data;
598 598
599 av_free(s->codebook); 599 av_free(s->codebook);
600 av_free(s->next_codebook_buffer); 600 av_free(s->next_codebook_buffer);