diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-02-28 14:57:54 +0100 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-03-01 12:12:33 -0500 |
commit | 6b4aa5dac8f41aa452d0ce9a1bede9e59a303060 (patch) | |
tree | a2790d8f7304a735dc8edf52207b823ceb73a7da /libavformat/asfenc.c | |
parent | 76d8846c4e918749b045ea2ee7399a069af5e4a5 (diff) | |
download | ffmpeg-6b4aa5dac8f41aa452d0ce9a1bede9e59a303060.tar.gz |
avio: avio_ prefix for url_fseek
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/asfenc.c')
-rw-r--r-- | libavformat/asfenc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c index b181f2321e..267f9b3d49 100644 --- a/libavformat/asfenc.c +++ b/libavformat/asfenc.c @@ -260,9 +260,9 @@ static void end_header(AVIOContext *pb, int64_t pos) int64_t pos1; pos1 = url_ftell(pb); - url_fseek(pb, pos + 16, SEEK_SET); + avio_seek(pb, pos + 16, SEEK_SET); avio_wl64(pb, pos1 - pos); - url_fseek(pb, pos1, SEEK_SET); + avio_seek(pb, pos1, SEEK_SET); } /* write an asf chunk (only used in streaming case) */ @@ -443,9 +443,9 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, int64_t data return -1; if (wavsize != extra_size) { cur_pos = url_ftell(pb); - url_fseek(pb, es_pos, SEEK_SET); + avio_seek(pb, es_pos, SEEK_SET); avio_wl32(pb, wavsize); /* wav header len */ - url_fseek(pb, cur_pos, SEEK_SET); + avio_seek(pb, cur_pos, SEEK_SET); } /* ERROR Correction */ avio_w8(pb, 0x01); @@ -530,17 +530,17 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, int64_t data if (asf->is_streamed) { header_size += 8 + 30 + 50; - url_fseek(pb, header_offset - 10 - 30, SEEK_SET); + avio_seek(pb, header_offset - 10 - 30, SEEK_SET); avio_wl16(pb, header_size); - url_fseek(pb, header_offset - 2 - 30, SEEK_SET); + avio_seek(pb, header_offset - 2 - 30, SEEK_SET); avio_wl16(pb, header_size); header_size -= 8 + 30 + 50; } header_size += 24 + 6; - url_fseek(pb, header_offset - 14, SEEK_SET); + avio_seek(pb, header_offset - 14, SEEK_SET); avio_wl64(pb, header_size); - url_fseek(pb, cur_pos, SEEK_SET); + avio_seek(pb, cur_pos, SEEK_SET); /* movie chunk, followed by packets of packet_size */ asf->data_offset = cur_pos; @@ -871,7 +871,7 @@ static int asf_write_trailer(AVFormatContext *s) } else { /* rewrite an updated header */ file_size = url_ftell(s->pb); - url_fseek(s->pb, 0, SEEK_SET); + avio_seek(s->pb, 0, SEEK_SET); asf_write_header1(s, file_size, data_size - asf->data_offset); } |