Commit bccae390 authored by James Almer's avatar James Almer

lavf/ffmenc: fix memleak in ffm_write_header

Regression since 745730c9.
The dynamic buffer was not being used or freed.
Reviewed-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 43c1d82b
......@@ -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:
......
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