Skip to content
Snippets Groups Projects
Commit 3dff1bf9 authored by Yoshihisa Uchida's avatar Yoshihisa Uchida Committed by Luca Barbato
Browse files

mmf: Write metadata into an Optional Data chunk


Signed-off-by: default avatarLuca Barbato <lu_zero@gentoo.org>
parent a349458e
No related branches found
No related tags found
No related merge requests found
...@@ -83,7 +83,10 @@ static int mmf_write_header(AVFormatContext *s) ...@@ -83,7 +83,10 @@ static int mmf_write_header(AVFormatContext *s)
avio_w8(pb, 0); /* code type */ avio_w8(pb, 0); /* code type */
avio_w8(pb, 0); /* status */ avio_w8(pb, 0); /* status */
avio_w8(pb, 0); /* counts */ avio_w8(pb, 0); /* counts */
avio_write(pb, "VN:libavcodec,", sizeof("VN:libavcodec,") - 1); /* metadata ("ST:songtitle,VN:version,...") */ end_tag_be(pb, pos);
pos = ff_start_tag(pb, "OPDA");
avio_write(pb, "VN:libavcodec,", sizeof("VN:libavcodec,") -1); /* metadata ("ST:songtitle,VN:version,...") */
end_tag_be(pb, pos); end_tag_be(pb, pos);
avio_write(pb, "ATR\x00", 4); avio_write(pb, "ATR\x00", 4);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment