Revision f59d8ff8 libavformat/flacenc.c

View differences:

libavformat/flacenc.c
101 101
    if (!url_is_streamed(pb)) {
102 102
        /* rewrite the STREAMINFO header block data */
103 103
        file_size = url_ftell(pb);
104
        url_fseek(pb, 8, SEEK_SET);
104
        avio_seek(pb, 8, SEEK_SET);
105 105
        avio_write(pb, streaminfo, FLAC_STREAMINFO_SIZE);
106
        url_fseek(pb, file_size, SEEK_SET);
106
        avio_seek(pb, file_size, SEEK_SET);
107 107
        put_flush_packet(pb);
108 108
    } else {
109 109
        av_log(s, AV_LOG_WARNING, "unable to rewrite FLAC header.\n");

Also available in: Unified diff