Browse Source

mmf: Write metadata into an Optional Data chunk

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
tags/n2.0
Yoshihisa Uchida Luca Barbato 12 years ago
parent
commit
3dff1bf99c
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      libavformat/mmf.c

+ 4
- 1
libavformat/mmf.c View File

@@ -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);


Loading…
Cancel
Save