summaryrefslogtreecommitdiff
path: root/libavformat/gxfenc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-02-24 07:36:04 +0100
committerRonald S. Bultje <rsbultje@gmail.com>2011-02-25 14:38:56 -0500
commitbbc413f943b53d96aa85fe272ec413c85794019f (patch)
tree9f6804f11a01261d080691b737b0d6ea98a26f7d /libavformat/gxfenc.c
parent99f42c27abfe916fa19ac0c18489c8bbf8525406 (diff)
lavf: replace remaining uses of put_tag with avio_write
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/gxfenc.c')
-rw-r--r--libavformat/gxfenc.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/libavformat/gxfenc.c b/libavformat/gxfenc.c
index fb6f441f3e..1b12f41e22 100644
--- a/libavformat/gxfenc.c
+++ b/libavformat/gxfenc.c
@@ -224,7 +224,7 @@ static int gxf_write_track_description(AVFormatContext *s, GXFStreamContext *sc,
/* media file name */
avio_w8(pb, TRACK_NAME);
avio_w8(pb, strlen(ES_NAME_PATTERN) + 3);
- put_tag(pb, ES_NAME_PATTERN);
+ avio_write(pb, ES_NAME_PATTERN, sizeof(ES_NAME_PATTERN) - 1);
avio_wb16(pb, sc->media_info);
avio_w8(pb, 0);
@@ -269,6 +269,7 @@ static int gxf_write_material_data_section(AVFormatContext *s)
GXFContext *gxf = s->priv_data;
AVIOContext *pb = s->pb;
int64_t pos;
+ int len;
const char *filename = strrchr(s->filename, '/');
pos = url_ftell(pb);
@@ -279,10 +280,12 @@ static int gxf_write_material_data_section(AVFormatContext *s)
filename++;
else
filename = s->filename;
+ len = strlen(filename);
+
avio_w8(pb, MAT_NAME);
- avio_w8(pb, strlen(SERVER_PATH) + strlen(filename) + 1);
- put_tag(pb, SERVER_PATH);
- put_tag(pb, filename);
+ avio_w8(pb, strlen(SERVER_PATH) + len + 1);
+ avio_write(pb, SERVER_PATH, sizeof(SERVER_PATH) - 1);
+ avio_write(pb, filename, len);
avio_w8(pb, 0);
/* first field */