[FFmpeg-soc] [soc]: r2401 - aacenc/aacenc.c
kostya
subversion at mplayerhq.hu
Sat Jun 7 12:33:57 CEST 2008
Author: kostya
Date: Sat Jun 7 12:33:56 2008
New Revision: 2401
Log:
Cleanup context at end
Modified:
aacenc/aacenc.c
Modified: aacenc/aacenc.c
==============================================================================
--- aacenc/aacenc.c (original)
+++ aacenc/aacenc.c Sat Jun 7 12:33:56 2008
@@ -236,6 +236,14 @@ static int aac_encode_frame(AVCodecConte
return put_bits_count(&s->pb)>>3;
}
+static int aac_encode_end(AVCodecContext *avctx)
+{
+ AACEncContext *s = avctx->priv_data;
+
+ ff_mdct_end(&s->mdct);
+ return 0;
+}
+
AVCodec aac_encoder = {
"aac",
CODEC_TYPE_AUDIO,
@@ -243,4 +251,5 @@ AVCodec aac_encoder = {
sizeof(AACEncContext),
aac_encode_init,
aac_encode_frame,
+ aac_encode_end,
};
More information about the FFmpeg-soc
mailing list