Mercurial > libavcodec.hg
diff adpcm.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 | bb969c77ad18 |
children | bf274494b66e |
line wrap: on
line diff
--- a/adpcm.c Sun Feb 22 11:35:32 2009 +0000 +++ b/adpcm.c Sun Feb 22 13:48:55 2009 +0000 @@ -149,7 +149,7 @@ /* XXX: implement encoding */ #if CONFIG_ENCODERS -static int adpcm_encode_init(AVCodecContext *avctx) +static av_cold int adpcm_encode_init(AVCodecContext *avctx) { if (avctx->channels > 2) return -1; /* only stereo or mono =) */ @@ -199,7 +199,7 @@ return 0; } -static int adpcm_encode_close(AVCodecContext *avctx) +static av_cold int adpcm_encode_close(AVCodecContext *avctx) { av_freep(&avctx->coded_frame);