diff options
author | Benjamin Larsson <banan@ludd.ltu.se> | 2009-09-22 01:00:18 +0400 |
---|---|---|
committer | Benjamin Larsson <banan@ludd.ltu.se> | 2009-09-22 01:00:18 +0400 |
commit | 9caab878292b61cb2325dc3caa8e426df0e762ea (patch) | |
tree | 4b93fa51e0333e091256d05d5ad63563110a2f38 /libavcodec/atrac1.c | |
parent | 78b3a12d9cc943fa744b96cd15a68a826cea30bf (diff) |
Add forgotten cleanup function in atrac1.
Originally committed as revision 19954 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/atrac1.c')
-rw-r--r-- | libavcodec/atrac1.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libavcodec/atrac1.c b/libavcodec/atrac1.c index c3f8cc0c9b..cac82b3678 100644 --- a/libavcodec/atrac1.c +++ b/libavcodec/atrac1.c @@ -361,13 +361,24 @@ static av_cold int atrac1_decode_init(AVCodecContext *avctx) 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)"), }; |