1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-09-16 08:36:51 +02:00

avcodec/mpegaudiodec_template: Mark flush functions as av_cold

Reviewed-by: Peter Ross <pross@xvid.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-09-04 12:25:48 +02:00
parent f611459e6f
commit 8728271097

View File

@@ -1625,7 +1625,7 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
return buf_size + skipped;
}
static void mp_flush(MPADecodeContext *ctx)
static av_cold void mp_flush(MPADecodeContext *ctx)
{
memset(ctx->synth_buf, 0, sizeof(ctx->synth_buf));
memset(ctx->mdct_buf, 0, sizeof(ctx->mdct_buf));
@@ -1633,7 +1633,7 @@ static void mp_flush(MPADecodeContext *ctx)
ctx->dither_state = 0;
}
static void flush(AVCodecContext *avctx)
static av_cold void flush(AVCodecContext *avctx)
{
mp_flush(avctx->priv_data);
}
@@ -1799,7 +1799,7 @@ static av_cold int decode_init_mp3on4(AVCodecContext * avctx)
}
static void flush_mp3on4(AVCodecContext *avctx)
static av_cold void flush_mp3on4(AVCodecContext *avctx)
{
int i;
MP3On4DecodeContext *s = avctx->priv_data;