comparison wmv2enc.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 493dc59d469a
children a4104482ceef
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
49 s->slice_height = s->mb_height / code; 49 s->slice_height = s->mb_height / code;
50 50
51 return 0; 51 return 0;
52 } 52 }
53 53
54 static int wmv2_encode_init(AVCodecContext *avctx){ 54 static av_cold int wmv2_encode_init(AVCodecContext *avctx){
55 Wmv2Context * const w= avctx->priv_data; 55 Wmv2Context * const w= avctx->priv_data;
56 56
57 if(MPV_encode_init(avctx) < 0) 57 if(MPV_encode_init(avctx) < 0)
58 return -1; 58 return -1;
59 59
65 65
66 return 0; 66 return 0;
67 } 67 }
68 68
69 #if 0 /* unused, remove? */ 69 #if 0 /* unused, remove? */
70 static int wmv2_encode_end(AVCodecContext *avctx){ 70 static av_cold int wmv2_encode_end(AVCodecContext *avctx){
71 71
72 if(MPV_encode_end(avctx) < 0) 72 if(MPV_encode_end(avctx) < 0)
73 return -1; 73 return -1;
74 74
75 avctx->extradata_size= 0; 75 avctx->extradata_size= 0;