aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/flacenc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-12-16 21:50:08 +0100
committerPaul B Mahol <onemda@gmail.com>2018-12-18 19:45:59 +0100
commitc0fb6f963fd7ee555ba2fdc254444e208bb0bc46 (patch)
tree20cf209d035ef7039bfed1acc4ee97610248b5ac /libavformat/flacenc.c
parentd283ee085f9aac44b5de1b09e3cab62920fa4a9a (diff)
downloadffmpeg-c0fb6f963fd7ee555ba2fdc254444e208bb0bc46.tar.gz
avformat/vorbiscomment: add support for writing chapters
Fixes #7532.
Diffstat (limited to 'libavformat/flacenc.c')
-rw-r--r--libavformat/flacenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/flacenc.c b/libavformat/flacenc.c
index 617bccdc84..a07260f426 100644
--- a/libavformat/flacenc.c
+++ b/libavformat/flacenc.c
@@ -65,7 +65,7 @@ static int flac_write_block_comment(AVIOContext *pb, AVDictionary **m,
ff_metadata_conv(m, ff_vorbiscomment_metadata_conv, NULL);
- len = ff_vorbiscomment_length(*m, vendor);
+ len = ff_vorbiscomment_length(*m, vendor, NULL, 0);
if (len >= ((1<<24) - 4))
return AVERROR(EINVAL);
p0 = av_malloc(len+4);
@@ -75,7 +75,7 @@ static int flac_write_block_comment(AVIOContext *pb, AVDictionary **m,
bytestream_put_byte(&p, last_block ? 0x84 : 0x04);
bytestream_put_be24(&p, len);
- ff_vorbiscomment_write(&p, m, vendor);
+ ff_vorbiscomment_write(&p, m, vendor, NULL, 0);
avio_write(pb, p0, len+4);
av_freep(&p0);