[FFmpeg-cvslog] 32bit libmp3lame support.
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Tue Apr 19 19:51:40 CEST 2011
On Tue, Apr 19, 2011 at 02:56:37PM +0200, Peter Belkner wrote:
> + if(! (s->s32_data.left = av_malloc(nelem * sizeof(int)))) {
> + av_freep(&avctx->coded_frame);
> + lame_close(s->gfp);
> +
> + return AVERROR(ENOMEM);
> + }
> @@ -210,6 +259,7 @@ static av_cold int MP3lame_encode_close(AVCodecContext *avctx)
> {
> Mp3AudioContext *s = avctx->priv_data;
>
> + av_freep(&s->s32_data.left);
> av_freep(&avctx->coded_frame);
Just double-checking: It is intentional that you do not use
MP3lame_encode_close in the upper chunk and don't set
s->s32_data.right to NULL as well in the lower?
More information about the ffmpeg-cvslog
mailing list