Commit f4c37a98 authored by banan's avatar banan

Add forgotten cleanup function in atrac1.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19954 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5ddda735
...@@ -361,13 +361,24 @@ static av_cold int atrac1_decode_init(AVCodecContext *avctx) ...@@ -361,13 +361,24 @@ static av_cold int atrac1_decode_init(AVCodecContext *avctx)
return 0; 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 = { AVCodec atrac1_decoder = {
.name = "atrac1", .name = "atrac1",
.type = CODEC_TYPE_AUDIO, .type = CODEC_TYPE_AUDIO,
.id = CODEC_ID_ATRAC1, .id = CODEC_ID_ATRAC1,
.priv_data_size = sizeof(AT1Ctx), .priv_data_size = sizeof(AT1Ctx),
.init = atrac1_decode_init, .init = atrac1_decode_init,
.close = NULL, .close = atrac1_decode_end,
.decode = atrac1_decode_frame, .decode = atrac1_decode_frame,
.long_name = NULL_IF_CONFIG_SMALL("Atrac 1 (Adaptive TRansform Acoustic Coding)"), .long_name = NULL_IF_CONFIG_SMALL("Atrac 1 (Adaptive TRansform Acoustic Coding)"),
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment