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
pull/126/head
Laurent Aimar 17 years ago committed by Diego Biurrun
parent 8212568a1c
commit d1c2156bc6
  1. 1
      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;

Loading…
Cancel
Save