aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/flvenc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-02-28 14:57:54 +0100
committerRonald S. Bultje <rsbultje@gmail.com>2011-03-01 12:12:33 -0500
commit6b4aa5dac8f41aa452d0ce9a1bede9e59a303060 (patch)
treea2790d8f7304a735dc8edf52207b823ceb73a7da /libavformat/flvenc.c
parent76d8846c4e918749b045ea2ee7399a069af5e4a5 (diff)
downloadffmpeg-6b4aa5dac8f41aa452d0ce9a1bede9e59a303060.tar.gz
avio: avio_ prefix for url_fseek
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/flvenc.c')
-rw-r--r--libavformat/flvenc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
index 4d49a966e9..7dd47da8a4 100644
--- a/libavformat/flvenc.c
+++ b/libavformat/flvenc.c
@@ -289,9 +289,9 @@ static int flv_write_header(AVFormatContext *s)
/* write total size of tag */
data_size= url_ftell(pb) - metadata_size_pos - 10;
- url_fseek(pb, metadata_size_pos, SEEK_SET);
+ avio_seek(pb, metadata_size_pos, SEEK_SET);
avio_wb24(pb, data_size);
- url_fseek(pb, data_size + 10 - 3, SEEK_CUR);
+ avio_seek(pb, data_size + 10 - 3, SEEK_CUR);
avio_wb32(pb, data_size + 11);
for (i = 0; i < s->nb_streams; i++) {
@@ -316,9 +316,9 @@ static int flv_write_header(AVFormatContext *s)
ff_isom_write_avcc(pb, enc->extradata, enc->extradata_size);
}
data_size = url_ftell(pb) - pos;
- url_fseek(pb, -data_size - 10, SEEK_CUR);
+ avio_seek(pb, -data_size - 10, SEEK_CUR);
avio_wb24(pb, data_size);
- url_fseek(pb, data_size + 10 - 3, SEEK_CUR);
+ avio_seek(pb, data_size + 10 - 3, SEEK_CUR);
avio_wb32(pb, data_size + 11); // previous tag size
}
}
@@ -346,12 +346,12 @@ static int flv_write_trailer(AVFormatContext *s)
file_size = url_ftell(pb);
/* update informations */
- url_fseek(pb, flv->duration_offset, SEEK_SET);
+ avio_seek(pb, flv->duration_offset, SEEK_SET);
put_amf_double(pb, flv->duration / (double)1000);
- url_fseek(pb, flv->filesize_offset, SEEK_SET);
+ avio_seek(pb, flv->filesize_offset, SEEK_SET);
put_amf_double(pb, file_size);
- url_fseek(pb, file_size, SEEK_SET);
+ avio_seek(pb, file_size, SEEK_SET);
return 0;
}