]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/id3v2.h
rmdec: when using INT4 deinterleaving, error out if sub_packet_h <= 1.
[ffmpeg] / libavformat / id3v2.h
index 4fb738a7649d7f2e8e1177304321c5b7835a2dca..a296e0315b4c3eefedb74fe824926bf1e23a78e1 100644 (file)
@@ -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.