comparison libtheoraenc.c @ 9007:043574c5c153 libavcodec

Add missing av_cold in static init/close functions. Patch by Daniel Verkamp daniel at drv dot nu.
author stefano
date Sun, 22 Feb 2009 13:48:55 +0000
parents 5b7d5a33a3e2
children d9f8496b3b91
comparison
equal deleted inserted replaced
9006:37ac731fe32c 9007:043574c5c153
75 memcpy( avc_context->extradata + (*offset), packet->packet, packet->bytes ); 75 memcpy( avc_context->extradata + (*offset), packet->packet, packet->bytes );
76 (*offset) += packet->bytes; 76 (*offset) += packet->bytes;
77 return 0; 77 return 0;
78 } 78 }
79 79
80 static int encode_init(AVCodecContext* avc_context) 80 static av_cold int encode_init(AVCodecContext* avc_context)
81 { 81 {
82 theora_info t_info; 82 theora_info t_info;
83 theora_comment t_comment; 83 theora_comment t_comment;
84 ogg_packet o_packet; 84 ogg_packet o_packet;
85 unsigned int offset; 85 unsigned int offset;
238 memcpy(outbuf, o_packet.packet, o_packet.bytes); 238 memcpy(outbuf, o_packet.packet, o_packet.bytes);
239 239
240 return o_packet.bytes; 240 return o_packet.bytes;
241 } 241 }
242 242
243 static int encode_close(AVCodecContext* avc_context) 243 static av_cold int encode_close(AVCodecContext* avc_context)
244 { 244 {
245 ogg_packet o_packet; 245 ogg_packet o_packet;
246 TheoraContext *h = avc_context->priv_data; 246 TheoraContext *h = avc_context->priv_data;
247 int result; 247 int result;
248 const char* message; 248 const char* message;