Originally committed as revision 1328 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 22 years ago
parent 492cd3a920
commit befaced573
  1. 6
      libavcodec/mp3lameaudio.c

@ -50,7 +50,9 @@ static int MP3lame_encode_init(AVCodecContext *avctx)
goto err_close; goto err_close;
avctx->frame_size = MPA_FRAME_SIZE; avctx->frame_size = MPA_FRAME_SIZE;
avctx->key_frame = 1;
avctx->coded_frame= avcodec_alloc_frame();
avctx->coded_frame->key_frame= 1;
return 0; return 0;
@ -82,6 +84,8 @@ int MP3lame_encode_close(AVCodecContext *avctx)
{ {
Mp3AudioContext *s = avctx->priv_data; Mp3AudioContext *s = avctx->priv_data;
av_freep(&avctx->coded_frame);
lame_close(s->gfp); lame_close(s->gfp);
return 0; return 0;
} }

Loading…
Cancel
Save