Revision a1b79792 libavformat/ffmetaenc.c

View differences:

libavformat/ffmetaenc.c
50 50

  
51 51
static int write_header(AVFormatContext *s)
52 52
{
53
    put_tag(s->pb, ID_STRING);
53
    avio_write(s->pb, ID_STRING, sizeof(ID_STRING) - 1);
54 54
    avio_w8(s->pb, '1');          // version
55 55
    avio_w8(s->pb, '\n');
56 56
    put_flush_packet(s->pb);
......
64 64
    write_tags(s->pb, s->metadata);
65 65

  
66 66
    for (i = 0; i < s->nb_streams; i++) {
67
        put_tag(s->pb, ID_STREAM);
67
        avio_write(s->pb, ID_STREAM, sizeof(ID_STREAM) - 1);
68 68
        avio_w8(s->pb, '\n');
69 69
        write_tags(s->pb, s->streams[i]->metadata);
70 70
    }
71 71

  
72 72
    for (i = 0; i < s->nb_chapters; i++) {
73 73
        AVChapter *ch = s->chapters[i];
74
        put_tag(s->pb, ID_CHAPTER);
74
        avio_write(s->pb, ID_CHAPTER, sizeof(ID_CHAPTER) - 1);
75 75
        avio_w8(s->pb, '\n');
76 76
        url_fprintf(s->pb, "TIMEBASE=%d/%d\n", ch->time_base.num, ch->time_base.den);
77 77
        url_fprintf(s->pb, "START=%"PRId64"\n", ch->start);

Also available in: Unified diff