projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a349458
)
mmf: Write metadata into an Optional Data chunk
author
Yoshihisa Uchida
<yoshihisa.uchida@gmail.com>
Sat, 5 Jan 2013 22:11:09 +0000
(23:11 +0100)
committer
Luca Barbato
<lu_zero@gentoo.org>
Tue, 14 May 2013 15:14:38 +0000
(17:14 +0200)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/mmf.c
patch
|
blob
|
history
diff --git
a/libavformat/mmf.c
b/libavformat/mmf.c
index
84c4ef7
..
61f1d7a
100644
(file)
--- a/
libavformat/mmf.c
+++ b/
libavformat/mmf.c
@@
-83,7
+83,10
@@
static int mmf_write_header(AVFormatContext *s)
avio_w8(pb, 0); /* code type */
avio_w8(pb, 0); /* status */
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);
avio_write(pb, "ATR\x00", 4);