diff targa.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 56d2853cd7c3
children 6eeb19edcee3
line wrap: on
line diff
--- a/targa.c	Thu Mar 20 19:36:20 2008 +0000
+++ b/targa.c	Fri Mar 21 03:11:20 2008 +0000
@@ -220,7 +220,7 @@
     return buf_size;
 }
 
-static int targa_init(AVCodecContext *avctx){
+static av_cold int targa_init(AVCodecContext *avctx){
     TargaContext *s = avctx->priv_data;
 
     avcodec_get_frame_defaults((AVFrame*)&s->picture);
@@ -230,7 +230,7 @@
     return 0;
 }
 
-static int targa_end(AVCodecContext *avctx){
+static av_cold int targa_end(AVCodecContext *avctx){
     TargaContext *s = avctx->priv_data;
 
     if(s->picture.data[0])