Mercurial > libavcodec.hg
changeset 10218:84a9a55135f4 libavcodec
Add forgotten cleanup function in atrac1.
author | banan |
---|---|
date | Mon, 21 Sep 2009 21:00:18 +0000 |
parents | 35f1814a6496 |
children | 87ae4a167138 |
files | atrac1.c |
diffstat | 1 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/atrac1.c Mon Sep 21 20:53:29 2009 +0000 +++ b/atrac1.c Mon Sep 21 21:00:18 2009 +0000 @@ -361,13 +361,24 @@ return 0; } + +static av_cold int atrac1_decode_end(AVCodecContext * avctx) { + AT1Ctx *q = avctx->priv_data; + + ff_mdct_end(&q->mdct_ctx[0]); + ff_mdct_end(&q->mdct_ctx[1]); + ff_mdct_end(&q->mdct_ctx[2]); + return 0; +} + + AVCodec atrac1_decoder = { .name = "atrac1", .type = CODEC_TYPE_AUDIO, .id = CODEC_ID_ATRAC1, .priv_data_size = sizeof(AT1Ctx), .init = atrac1_decode_init, - .close = NULL, + .close = atrac1_decode_end, .decode = atrac1_decode_frame, .long_name = NULL_IF_CONFIG_SMALL("Atrac 1 (Adaptive TRansform Acoustic Coding)"), };