summaryrefslogtreecommitdiff
path: root/libavformat/gif.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/gif.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/gif.c')
-rw-r--r--libavformat/gif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/gif.c b/libavformat/gif.c
index f3f64d1fcc..17effaaa46 100644
--- a/libavformat/gif.c
+++ b/libavformat/gif.c
@@ -114,8 +114,8 @@ static int gif_image_write_header(AVIOContext *pb,
int i;
unsigned int v;
- put_tag(pb, "GIF");
- put_tag(pb, "89a");
+ avio_write(pb, "GIF", 3);
+ avio_write(pb, "89a", 3);
avio_wl16(pb, width);
avio_wl16(pb, height);
@@ -162,7 +162,7 @@ static int gif_image_write_header(AVIOContext *pb,
avio_w8(pb, 0x21);
avio_w8(pb, 0xff);
avio_w8(pb, 0x0b);
- put_tag(pb, "NETSCAPE2.0"); // bytes 4 to 14
+ avio_write(pb, "NETSCAPE2.0", sizeof("NETSCAPE2.0") - 1); // bytes 4 to 14
avio_w8(pb, 0x03); // byte 15
avio_w8(pb, 0x01); // byte 16
avio_wl16(pb, (uint16_t)loop_count);