From 16ad77b357ebbe74a7bc9568904c328a2722651e Mon Sep 17 00:00:00 2001 From: Michael Karcher Date: Fri, 21 Oct 2011 23:32:32 +0200 Subject: Move id3v2 tag writing to a separate file. Signed-off-by: Diego Biurrun --- libavformat/id3v2.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libavformat/id3v2.h') diff --git a/libavformat/id3v2.h b/libavformat/id3v2.h index b5e4894ea3..a296e0315b 100644 --- a/libavformat/id3v2.h +++ b/libavformat/id3v2.h @@ -86,6 +86,14 @@ void ff_id3v2_read(AVFormatContext *s, const char *magic); */ void ff_id3v2_read_all(AVFormatContext *s, const char *magic, ID3v2ExtraMeta **extra_meta); +/** + * Write an ID3v2 tag. + * @param id3v2_version Subversion of ID3v2; supported values are 3 and 4 + * @param magic magic bytes to identify the header + * If in doubt, use ID3v2_DEFAULT_MAGIC. + */ +int ff_id3v2_write(struct AVFormatContext *s, int id3v2_version, const char *magic); + /** * Free memory allocated parsing special (non-text) metadata. * @param extra_meta Pointer to a pointer to the head of a ID3v2ExtraMeta list, *extra_meta is set to NULL. -- cgit v1.2.3