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>
This commit is contained in:
James Almer 2014-11-18 03:12:38 -03:00
parent 43c1d82b86
commit bccae39072
1 changed files with 0 additions and 2 deletions

View File

@ -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: