Revision f59d8ff8 libavformat/soxenc.c

View differences:

libavformat/soxenc.c
100 100
        /* update number of samples */
101 101
        int64_t file_size = url_ftell(pb);
102 102
        int64_t num_samples = (file_size - sox->header_size - 4LL) >> 2LL;
103
        url_fseek(pb, 8, SEEK_SET);
103
        avio_seek(pb, 8, SEEK_SET);
104 104
        if (enc->codec_id == CODEC_ID_PCM_S32LE) {
105 105
            avio_wl64(pb, num_samples);
106 106
        } else
107 107
            avio_wb64(pb, num_samples);
108
        url_fseek(pb, file_size, SEEK_SET);
108
        avio_seek(pb, file_size, SEEK_SET);
109 109

  
110 110
        put_flush_packet(pb);
111 111
    }

Also available in: Unified diff