Revision f59d8ff8 libavformat/wav.c

View differences:

libavformat/wav.c
103 103

  
104 104
        /* update file size */
105 105
        file_size = url_ftell(pb);
106
        url_fseek(pb, 4, SEEK_SET);
106
        avio_seek(pb, 4, SEEK_SET);
107 107
        avio_wl32(pb, (uint32_t)(file_size - 8));
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

  
......
115 115
            number_of_samples = av_rescale(wav->maxpts - wav->minpts + wav->last_duration,
116 116
                                           s->streams[0]->codec->sample_rate * (int64_t)s->streams[0]->time_base.num,
117 117
                                           s->streams[0]->time_base.den);
118
            url_fseek(pb, wav->data-12, SEEK_SET);
118
            avio_seek(pb, wav->data-12, SEEK_SET);
119 119
            avio_wl32(pb, number_of_samples);
120
            url_fseek(pb, file_size, SEEK_SET);
120
            avio_seek(pb, file_size, SEEK_SET);
121 121
            put_flush_packet(pb);
122 122
        }
123 123
    }
......
160 160
        size = next_tag(pb, &tag);
161 161
        if (tag == tag1)
162 162
            break;
163
        url_fseek(pb, size, SEEK_CUR);
163
        avio_seek(pb, size, SEEK_CUR);
164 164
    }
165 165
    return size;
166 166
}
......
243 243
            sample_count = avio_rl32(pb);
244 244
            size -= 4;
245 245
        }
246
        url_fseek(pb, size, SEEK_CUR);
246
        avio_seek(pb, size, SEEK_CUR);
247 247
    }
248 248
    if (rf64)
249 249
        size = data_size;

Also available in: Unified diff