diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-03-03 20:11:45 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-03-05 02:29:31 +0100 |
commit | 384c9c2fa79f2f09ed4a5aa4c14ba3ffc6bdc790 (patch) | |
tree | a3ec8979530bffeb61b84161d1681120bf1234af /libavformat/swfenc.c | |
parent | 773947ba76c575abc01ba128206c87440dad40ec (diff) | |
download | ffmpeg-384c9c2fa79f2f09ed4a5aa4c14ba3ffc6bdc790.tar.gz |
avio: add avio_tell macro as a replacement for url_ftell
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit a2704c9712ad35cc22e7e0d8a79b581c07fa383b)
Diffstat (limited to 'libavformat/swfenc.c')
-rw-r--r-- | libavformat/swfenc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/swfenc.c b/libavformat/swfenc.c index c898c0ec5f..182cb65660 100644 --- a/libavformat/swfenc.c +++ b/libavformat/swfenc.c @@ -29,7 +29,7 @@ static void put_swf_tag(AVFormatContext *s, int tag) SWFContext *swf = s->priv_data; AVIOContext *pb = s->pb; - swf->tag_pos = url_ftell(pb); + swf->tag_pos = avio_tell(pb); swf->tag = tag; /* reserve some room for the tag */ if (tag & TAG_LONG) { @@ -47,7 +47,7 @@ static void put_swf_end_tag(AVFormatContext *s) int64_t pos; int tag_len, tag; - pos = url_ftell(pb); + pos = avio_tell(pb); tag_len = pos - swf->tag_pos - 2; tag = swf->tag; avio_seek(pb, swf->tag_pos, SEEK_SET); @@ -246,7 +246,7 @@ static int swf_write_header(AVFormatContext *s) put_swf_rect(pb, 0, width * 20, 0, height * 20); avio_wl16(pb, (rate * 256) / rate_base); /* frame rate */ - swf->duration_pos = url_ftell(pb); + swf->duration_pos = avio_tell(pb); avio_wl16(pb, (uint16_t)(DUMMY_DURATION * (int64_t)rate / rate_base)); /* frame count */ /* avm2/swf v9 (also v8?) files require a file attribute tag */ @@ -346,7 +346,7 @@ static int swf_write_video(AVFormatContext *s, /* create a new video object */ put_swf_tag(s, TAG_VIDEOSTREAM); avio_wl16(pb, VIDEO_ID); - swf->vframes_pos = url_ftell(pb); + swf->vframes_pos = avio_tell(pb); avio_wl16(pb, 15000); /* hard flash player limit */ avio_wl16(pb, enc->width); avio_wl16(pb, enc->height); @@ -493,7 +493,7 @@ static int swf_write_trailer(AVFormatContext *s) /* patch file size and number of frames if not streamed */ if (!url_is_streamed(s->pb) && video_enc) { - file_size = url_ftell(pb); + file_size = avio_tell(pb); avio_seek(pb, 4, SEEK_SET); avio_wl32(pb, file_size); avio_seek(pb, swf->duration_pos, SEEK_SET); |