# HG changeset patch # User michaelni # Date 1039444400 0 # Node ID 9a78dac52f4ae67a3533810a90f40a599371fb80 # Parent 7fccaa0d699db9afac1b3431df4548c1e2e51e7e 100l diff -r 7fccaa0d699d -r 9a78dac52f4a mp3lameaudio.c --- a/mp3lameaudio.c Mon Dec 09 12:03:43 2002 +0000 +++ b/mp3lameaudio.c Mon Dec 09 14:33:20 2002 +0000 @@ -50,7 +50,9 @@ goto err_close; avctx->frame_size = MPA_FRAME_SIZE; - avctx->key_frame = 1; + + avctx->coded_frame= avcodec_alloc_frame(); + avctx->coded_frame->key_frame= 1; return 0; @@ -81,6 +83,8 @@ int MP3lame_encode_close(AVCodecContext *avctx) { Mp3AudioContext *s = avctx->priv_data; + + av_freep(&avctx->coded_frame); lame_close(s->gfp); return 0;