diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-02-24 07:36:04 +0100 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-02-25 14:38:56 -0500 |
commit | bbc413f943b53d96aa85fe272ec413c85794019f (patch) | |
tree | 9f6804f11a01261d080691b737b0d6ea98a26f7d /libavformat/ffmetaenc.c | |
parent | 99f42c27abfe916fa19ac0c18489c8bbf8525406 (diff) | |
download | ffmpeg-bbc413f943b53d96aa85fe272ec413c85794019f.tar.gz |
lavf: replace remaining uses of put_tag with avio_write
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/ffmetaenc.c')
-rw-r--r-- | libavformat/ffmetaenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/ffmetaenc.c b/libavformat/ffmetaenc.c index 322ec0f576..77db0b9bf8 100644 --- a/libavformat/ffmetaenc.c +++ b/libavformat/ffmetaenc.c @@ -50,7 +50,7 @@ static void write_tags(AVIOContext *s, AVMetadata *m) static int write_header(AVFormatContext *s) { - put_tag(s->pb, ID_STRING); + avio_write(s->pb, ID_STRING, sizeof(ID_STRING) - 1); avio_w8(s->pb, '1'); // version avio_w8(s->pb, '\n'); put_flush_packet(s->pb); @@ -64,14 +64,14 @@ static int write_trailer(AVFormatContext *s) write_tags(s->pb, s->metadata); for (i = 0; i < s->nb_streams; i++) { - put_tag(s->pb, ID_STREAM); + avio_write(s->pb, ID_STREAM, sizeof(ID_STREAM) - 1); avio_w8(s->pb, '\n'); write_tags(s->pb, s->streams[i]->metadata); } for (i = 0; i < s->nb_chapters; i++) { AVChapter *ch = s->chapters[i]; - put_tag(s->pb, ID_CHAPTER); + avio_write(s->pb, ID_CHAPTER, sizeof(ID_CHAPTER) - 1); avio_w8(s->pb, '\n'); url_fprintf(s->pb, "TIMEBASE=%d/%d\n", ch->time_base.num, ch->time_base.den); url_fprintf(s->pb, "START=%"PRId64"\n", ch->start); |