From d1c2156bc6e3fd723ba8fff02815a3cc2f8769b7 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Tue, 2 Sep 2008 22:53:42 +0000 Subject: [PATCH] Fix an invalid free in the AVI muxer when an unsupported audio track is added. patch by Laurent Aimar, fenrir via.ecp fr Originally committed as revision 15159 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/avienc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavformat/avienc.c b/libavformat/avienc.c index 559e8ab7cc..db59555e45 100644 --- a/libavformat/avienc.c +++ b/libavformat/avienc.c @@ -249,7 +249,6 @@ static int avi_write_header(AVFormatContext *s) break; case CODEC_TYPE_AUDIO: if (put_wav_header(pb, stream) < 0) { - av_free(avi); return -1; } break;