Add missing av_cold in static init/close functions.
Patch by Daniel Verkamp daniel at drv dot nu. Originally committed as revision 17526 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:

committed by
Stefano Sabatini

parent
50ded3fdb6
commit
5ef251e504
@@ -156,7 +156,7 @@ typedef struct AMRContext {
|
||||
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 @@ static int amr_nb_decode_init(AVCodecContext * avctx)
|
||||
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 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
|
||||
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 @@ static int amr_nb_encode_close(AVCodecContext * avctx)
|
||||
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 @@ typedef struct AMRContext {
|
||||
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 @@ static int amr_nb_decode_init(AVCodecContext * avctx)
|
||||
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 @@ static int amr_nb_encode_init(AVCodecContext * avctx)
|
||||
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 @@ static int amr_nb_decode_close(AVCodecContext * avctx)
|
||||
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;
|
||||
|
||||
|
Reference in New Issue
Block a user