changeset 926:9a78dac52f4a libavcodec

100l
author michaelni
date Mon, 09 Dec 2002 14:33:20 +0000
parents 7fccaa0d699d
children 60241e4290e3
files mp3lameaudio.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;