mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-12 02:04:58 +00:00
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
This commit is contained in:
parent
8212568a1c
commit
d1c2156bc6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user