projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
492cd3a
)
100l
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 9 Dec 2002 14:33:20 +0000
(14:33 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 9 Dec 2002 14:33:20 +0000
(14:33 +0000)
Originally committed as revision 1328 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mp3lameaudio.c
patch
|
blob
|
history
diff --git
a/libavcodec/mp3lameaudio.c
b/libavcodec/mp3lameaudio.c
index
a047e1a
..
18f36e1
100644
(file)
--- a/
libavcodec/mp3lameaudio.c
+++ b/
libavcodec/mp3lameaudio.c
@@
-50,7
+50,9
@@
static int MP3lame_encode_init(AVCodecContext *avctx)
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_frame(AVCodecContext *avctx,
int MP3lame_encode_close(AVCodecContext *avctx)
{
Mp3AudioContext *s = avctx->priv_data;
+
+ av_freep(&avctx->coded_frame);
lame_close(s->gfp);
return 0;