Mercurial > libavcodec.hg
comparison pnmenc.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 | ec8c482d17c1 |
children | 6eeb19edcee3 |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
21 #include "avcodec.h" | 21 #include "avcodec.h" |
22 #include "bytestream.h" | 22 #include "bytestream.h" |
23 #include "pnm.h" | 23 #include "pnm.h" |
24 | 24 |
25 | 25 |
26 static int common_init(AVCodecContext *avctx){ | 26 static av_cold int common_init(AVCodecContext *avctx){ |
27 PNMContext *s = avctx->priv_data; | 27 PNMContext *s = avctx->priv_data; |
28 | 28 |
29 avcodec_get_frame_defaults((AVFrame*)&s->picture); | 29 avcodec_get_frame_defaults((AVFrame*)&s->picture); |
30 avctx->coded_frame= (AVFrame*)&s->picture; | 30 avctx->coded_frame= (AVFrame*)&s->picture; |
31 | 31 |