Commit 2b12b08f authored by diego's avatar diego

Fix an invalid free in the AVI muxer when an unsupported audio track is added.

patch by Laurent Aimar, fenrir via.ecp fr


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15159 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 24dbaa14
......@@ -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;
......
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