diff libamr.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 7a463923ecd1
children 54bc8a2727b0
line wrap: on
line diff
--- a/libamr.c	Sun Feb 22 11:35:32 2009 +0000
+++ b/libamr.c	Sun Feb 22 13:48:55 2009 +0000
@@ -156,7 +156,7 @@
     enum TXFrameType tx_frametype;
 } AMRContext;
 
-static int amr_nb_decode_init(AVCodecContext * avctx)
+static av_cold int amr_nb_decode_init(AVCodecContext * avctx)
 {
     AMRContext *s = avctx->priv_data;
 
@@ -184,7 +184,7 @@
     return 0;
 }
 
-static int amr_nb_encode_init(AVCodecContext * avctx)
+static av_cold int amr_nb_encode_init(AVCodecContext * avctx)
 {
     AMRContext *s = avctx->priv_data;
 
@@ -225,7 +225,7 @@
     return 0;
 }
 
-static int amr_nb_encode_close(AVCodecContext * avctx)
+static av_cold int amr_nb_encode_close(AVCodecContext * avctx)
 {
     AMRContext *s = avctx->priv_data;
 
@@ -235,7 +235,7 @@
     return 0;
 }
 
-static int amr_nb_decode_close(AVCodecContext * avctx)
+static av_cold int amr_nb_decode_close(AVCodecContext * avctx)
 {
     AMRContext *s = avctx->priv_data;
 
@@ -362,7 +362,7 @@
     int enc_bitrate;
 } AMRContext;
 
-static int amr_nb_decode_init(AVCodecContext * avctx)
+static av_cold int amr_nb_decode_init(AVCodecContext * avctx)
 {
     AMRContext *s = avctx->priv_data;
 
@@ -385,7 +385,7 @@
     return 0;
 }
 
-static int amr_nb_encode_init(AVCodecContext * avctx)
+static av_cold int amr_nb_encode_init(AVCodecContext * avctx)
 {
     AMRContext *s = avctx->priv_data;
 
@@ -422,7 +422,7 @@
     return 0;
 }
 
-static int amr_nb_decode_close(AVCodecContext * avctx)
+static av_cold int amr_nb_decode_close(AVCodecContext * avctx)
 {
     AMRContext *s = avctx->priv_data;
 
@@ -430,7 +430,7 @@
     return 0;
 }
 
-static int amr_nb_encode_close(AVCodecContext * avctx)
+static av_cold int amr_nb_encode_close(AVCodecContext * avctx)
 {
     AMRContext *s = avctx->priv_data;