Commit d1c2156b authored by Laurent Aimar's avatar Laurent Aimar Committed by Diego Biurrun

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
parent 8212568a
...@@ -249,7 +249,6 @@ static int avi_write_header(AVFormatContext *s) ...@@ -249,7 +249,6 @@ static int avi_write_header(AVFormatContext *s)
break; break;
case CODEC_TYPE_AUDIO: case CODEC_TYPE_AUDIO:
if (put_wav_header(pb, stream) < 0) { if (put_wav_header(pb, stream) < 0) {
av_free(avi);
return -1; return -1;
} }
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment