diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-12-16 21:50:08 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-12-18 19:45:59 +0100 |
commit | c0fb6f963fd7ee555ba2fdc254444e208bb0bc46 (patch) | |
tree | 20cf209d035ef7039bfed1acc4ee97610248b5ac /libavformat/vorbiscomment.h | |
parent | d283ee085f9aac44b5de1b09e3cab62920fa4a9a (diff) | |
download | ffmpeg-c0fb6f963fd7ee555ba2fdc254444e208bb0bc46.tar.gz |
avformat/vorbiscomment: add support for writing chapters
Fixes #7532.
Diffstat (limited to 'libavformat/vorbiscomment.h')
-rw-r--r-- | libavformat/vorbiscomment.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libavformat/vorbiscomment.h b/libavformat/vorbiscomment.h index e0d30b14a7..4ff3dd6c27 100644 --- a/libavformat/vorbiscomment.h +++ b/libavformat/vorbiscomment.h @@ -34,7 +34,8 @@ * For no string, set to an empty string. * @return The length in bytes. */ -int64_t ff_vorbiscomment_length(AVDictionary *m, const char *vendor_string); +int64_t ff_vorbiscomment_length(AVDictionary *m, const char *vendor_string, + AVChapter **chapters, unsigned int nb_chapters); /** * Write a VorbisComment into a buffer. The buffer, p, must have enough @@ -45,9 +46,12 @@ int64_t ff_vorbiscomment_length(AVDictionary *m, const char *vendor_string); * @param p The buffer in which to write. * @param m The metadata struct to write. * @param vendor_string The vendor string to write. + * @param chapters The chapters to write. + * @param nb_chapters The number of chapters to write. */ int ff_vorbiscomment_write(uint8_t **p, AVDictionary **m, - const char *vendor_string); + const char *vendor_string, + AVChapter **chapters, unsigned int nb_chapters); extern const AVMetadataConv ff_vorbiscomment_metadata_conv[]; |