Patch by flybird2k at gmail
Originally committed as revision 24307 to svn://svn.ffmpeg.org/ffmpeg/trunk
}
}
+static av_cold int decode_end(AVCodecContext * avctx)
+{
+ MPADecodeContext *s = avctx->priv_data;
+ ff_dct_end(&s->dct);
+ return 0;
+}
+
#if CONFIG_MP1FLOAT_DECODER
AVCodec mp1float_decoder =
{
sizeof(MPADecodeContext),
decode_init,
NULL,
- NULL,
+ decode_end,
decode_frame,
CODEC_CAP_PARSE_ONLY,
.flush= flush,
sizeof(MPADecodeContext),
decode_init,
NULL,
- NULL,
+ decode_end,
decode_frame,
CODEC_CAP_PARSE_ONLY,
.flush= flush,
sizeof(MPADecodeContext),
decode_init,
NULL,
- NULL,
+ decode_end,
decode_frame,
CODEC_CAP_PARSE_ONLY,
.flush= flush,
sizeof(MPADecodeContext),
decode_init,
NULL,
- NULL,
+ decode_end,
decode_frame_adu,
CODEC_CAP_PARSE_ONLY,
.flush= flush,