aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/gif.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-02-24 07:36:04 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-02-26 03:16:05 +0100
commita1b797926179071841b0d01c6befd8d2e2ebe8e6 (patch)
tree9c0a120d290bf3275d700d59d97e524dcd8635d8 /libavformat/gif.c
parenteac4e4d9a59a146a6c8c1e0cf31472624b79274e (diff)
downloadffmpeg-a1b797926179071841b0d01c6befd8d2e2ebe8e6.tar.gz
lavf: replace remaining uses of put_tag with avio_write
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit bbc413f943b53d96aa85fe272ec413c85794019f)
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);