X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fid3v2.h;h=a296e0315b4c3eefedb74fe824926bf1e23a78e1;hb=e30b3e59a4f3004337cb1623b2aac988ce52b93f;hp=4fb738a7649d7f2e8e1177304321c5b7835a2dca;hpb=c4a378855e7a37605af3f9120537ed9bbc5d3996;p=ffmpeg diff --git a/libavformat/id3v2.h b/libavformat/id3v2.h index 4fb738a7649..a296e0315b4 100644 --- a/libavformat/id3v2.h +++ b/libavformat/id3v2.h @@ -62,7 +62,7 @@ typedef struct ID3v2ExtraMetaGEOB { /** * Detect ID3v2 Header. * @param buf must be ID3v2_HEADER_SIZE byte long - * @param magic magic bytes to identify the header, machine byte order. + * @param magic magic bytes to identify the header. * If in doubt, use ID3v2_DEFAULT_MAGIC. */ int ff_id3v2_match(const uint8_t *buf, const char *magic); @@ -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.