Mercurial > libavcodec.hg
comparison rawenc.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 | 810df021dbef |
children | 5b3acf9fd50a |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
25 */ | 25 */ |
26 | 26 |
27 #include "avcodec.h" | 27 #include "avcodec.h" |
28 #include "raw.h" | 28 #include "raw.h" |
29 | 29 |
30 static int raw_init_encoder(AVCodecContext *avctx) | 30 static av_cold int raw_init_encoder(AVCodecContext *avctx) |
31 { | 31 { |
32 avctx->coded_frame = (AVFrame *)avctx->priv_data; | 32 avctx->coded_frame = (AVFrame *)avctx->priv_data; |
33 avctx->coded_frame->pict_type = FF_I_TYPE; | 33 avctx->coded_frame->pict_type = FF_I_TYPE; |
34 avctx->coded_frame->key_frame = 1; | 34 avctx->coded_frame->key_frame = 1; |
35 if(!avctx->codec_tag) | 35 if(!avctx->codec_tag) |