Revision a1b79792 libavformat/gif.c

View differences:

libavformat/gif.c
114 114
    int i;
115 115
    unsigned int v;
116 116

  
117
    put_tag(pb, "GIF");
118
    put_tag(pb, "89a");
117
    avio_write(pb, "GIF", 3);
118
    avio_write(pb, "89a", 3);
119 119
    avio_wl16(pb, width);
120 120
    avio_wl16(pb, height);
121 121

  
......
162 162
    avio_w8(pb, 0x21);
163 163
    avio_w8(pb, 0xff);
164 164
    avio_w8(pb, 0x0b);
165
        put_tag(pb, "NETSCAPE2.0");  // bytes 4 to 14
165
        avio_write(pb, "NETSCAPE2.0", sizeof("NETSCAPE2.0") - 1);  // bytes 4 to 14
166 166
        avio_w8(pb, 0x03); // byte 15
167 167
        avio_w8(pb, 0x01); // byte 16
168 168
        avio_wl16(pb, (uint16_t)loop_count);

Also available in: Unified diff