summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoshihisa Uchida <yoshihisa.uchida@gmail.com>2013-01-05 23:11:09 +0100
committerLuca Barbato <lu_zero@gentoo.org>2013-05-14 17:14:38 +0200
commit3dff1bf99c65230cd62a06d4a4e5ab569a321eeb (patch)
tree24e9b466b45c2d7d95d4ebff22523adcbcee0ee7
parenta349458e6769df0ddd62cb12784e7205c8d1ca58 (diff)
downloadffmpeg-streaming-3dff1bf99c65230cd62a06d4a4e5ab569a321eeb.zip
ffmpeg-streaming-3dff1bf99c65230cd62a06d4a4e5ab569a321eeb.tar.gz
mmf: Write metadata into an Optional Data chunk
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-rw-r--r--libavformat/mmf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/mmf.c b/libavformat/mmf.c
index 84c4ef7..61f1d7a 100644
--- 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);
OpenPOWER on IntegriCloud