comparison atrac1.c @ 10218:84a9a55135f4 libavcodec

Add forgotten cleanup function in atrac1.
author banan
date Mon, 21 Sep 2009 21:00:18 +0000
parents 35f1814a6496
children 47f2b03e0c62
comparison
equal deleted inserted replaced
10217:35f1814a6496 10218:84a9a55135f4
359 q->SUs[1].spectrum[1] = q->SUs[1].spec2; 359 q->SUs[1].spectrum[1] = q->SUs[1].spec2;
360 360
361 return 0; 361 return 0;
362 } 362 }
363 363
364
365 static av_cold int atrac1_decode_end(AVCodecContext * avctx) {
366 AT1Ctx *q = avctx->priv_data;
367
368 ff_mdct_end(&q->mdct_ctx[0]);
369 ff_mdct_end(&q->mdct_ctx[1]);
370 ff_mdct_end(&q->mdct_ctx[2]);
371 return 0;
372 }
373
374
364 AVCodec atrac1_decoder = { 375 AVCodec atrac1_decoder = {
365 .name = "atrac1", 376 .name = "atrac1",
366 .type = CODEC_TYPE_AUDIO, 377 .type = CODEC_TYPE_AUDIO,
367 .id = CODEC_ID_ATRAC1, 378 .id = CODEC_ID_ATRAC1,
368 .priv_data_size = sizeof(AT1Ctx), 379 .priv_data_size = sizeof(AT1Ctx),
369 .init = atrac1_decode_init, 380 .init = atrac1_decode_init,
370 .close = NULL, 381 .close = atrac1_decode_end,
371 .decode = atrac1_decode_frame, 382 .decode = atrac1_decode_frame,
372 .long_name = NULL_IF_CONFIG_SMALL("Atrac 1 (Adaptive TRansform Acoustic Coding)"), 383 .long_name = NULL_IF_CONFIG_SMALL("Atrac 1 (Adaptive TRansform Acoustic Coding)"),
373 }; 384 };