Revision b7f2fdde libavformat/flacenc.c

View differences:

libavformat/flacenc.c
104 104
        avio_seek(pb, 8, SEEK_SET);
105 105
        avio_write(pb, streaminfo, FLAC_STREAMINFO_SIZE);
106 106
        avio_seek(pb, file_size, SEEK_SET);
107
        put_flush_packet(pb);
107
        avio_flush(pb);
108 108
    } else {
109 109
        av_log(s, AV_LOG_WARNING, "unable to rewrite FLAC header.\n");
110 110
    }
......
114 114
static int flac_write_packet(struct AVFormatContext *s, AVPacket *pkt)
115 115
{
116 116
    avio_write(s->pb, pkt->data, pkt->size);
117
    put_flush_packet(s->pb);
117
    avio_flush(s->pb);
118 118
    return 0;
119 119
}
120 120

  

Also available in: Unified diff