diff ptx.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 ce0378d4c06c
children 6eeb19edcee3
line wrap: on
line diff
--- a/ptx.c	Thu Mar 20 19:36:20 2008 +0000
+++ b/ptx.c	Fri Mar 21 03:11:20 2008 +0000
@@ -25,7 +25,7 @@
     AVFrame picture;
 } PTXContext;
 
-static int ptx_init(AVCodecContext *avctx) {
+static av_cold int ptx_init(AVCodecContext *avctx) {
     PTXContext *s = avctx->priv_data;
 
     avcodec_get_frame_defaults(&s->picture);
@@ -94,7 +94,7 @@
     return offset + w*h*bytes_per_pixel;
 }
 
-static int ptx_end(AVCodecContext *avctx) {
+static av_cold int ptx_end(AVCodecContext *avctx) {
     PTXContext *s = avctx->priv_data;
 
     if(s->picture.data[0])