lavf/ffmenc: fix memleak in ffm_write_header

Regression since 745730c9c2.
The dynamic buffer was not being used or freed.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
pull/96/merge
James Almer 10 years ago
parent 43c1d82b86
commit bccae39072
  1. 2
      libavformat/ffmenc.c

@ -217,8 +217,6 @@ static int ffm_write_header(AVFormatContext *s)
avio_write(pb, codec->extradata, codec->extradata_size);
}
write_header_chunk(s->pb, pb, MKBETAG('C', 'O', 'M', 'M'));
if(avio_open_dyn_buf(&pb) < 0)
return AVERROR(ENOMEM);
/* specific info */
switch(codec->codec_type) {
case AVMEDIA_TYPE_VIDEO:

Loading…
Cancel
Save