From a2704c9712ad35cc22e7e0d8a79b581c07fa383b Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 3 Mar 2011 20:11:45 +0100 Subject: avio: add avio_tell macro as a replacement for url_ftell Signed-off-by: Ronald S. Bultje --- libavformat/mmf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libavformat/mmf.c') diff --git a/libavformat/mmf.c b/libavformat/mmf.c index a68870c1c2..0f5cee4f71 100644 --- a/libavformat/mmf.c +++ b/libavformat/mmf.c @@ -52,7 +52,7 @@ static void end_tag_be(AVIOContext *pb, int64_t start) { int64_t pos; - pos = url_ftell(pb); + pos = avio_tell(pb); avio_seek(pb, start - 4, SEEK_SET); avio_wb32(pb, (uint32_t)(pos - start)); avio_seek(pb, pos, SEEK_SET); @@ -84,7 +84,7 @@ static int mmf_write_header(AVFormatContext *s) avio_write(pb, "ATR\x00", 4); avio_wb32(pb, 0); - mmf->atrpos = url_ftell(pb); + mmf->atrpos = avio_tell(pb); avio_w8(pb, 0); /* format type */ avio_w8(pb, 0); /* sequence type */ avio_w8(pb, (0 << 7) | (1 << 4) | rate); /* (channel << 7) | (format << 4) | rate */ @@ -94,7 +94,7 @@ static int mmf_write_header(AVFormatContext *s) ffio_wfourcc(pb, "Atsq"); avio_wb32(pb, 16); - mmf->atsqpos = url_ftell(pb); + mmf->atsqpos = avio_tell(pb); /* Will be filled on close */ avio_write(pb, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 16); @@ -139,7 +139,7 @@ static int mmf_write_trailer(AVFormatContext *s) end_tag_be(pb, mmf->atrpos); end_tag_be(pb, 8); - pos = url_ftell(pb); + pos = avio_tell(pb); size = pos - mmf->awapos; /* Fill Atsq chunk */ -- cgit v1.2.3