mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
43c1d82b86
commit
bccae39072
|
@ -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…
Reference in New Issue