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/movenchint.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/movenchint.c')
-rw-r--r-- | libavformat/movenchint.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/movenchint.c b/libavformat/movenchint.c index e6f74cdb0f..21793cdd47 100644 --- a/libavformat/movenchint.c +++ b/libavformat/movenchint.c @@ -316,7 +316,7 @@ static int write_hint_packets(AVIOContext *out, const uint8_t *data, int64_t count_pos, entries_pos; int count = 0, entries; - count_pos = url_ftell(out); + count_pos = avio_tell(out); /* RTPsample header */ avio_wb16(out, 0); /* packet count */ avio_wb16(out, 0); /* reserved */ @@ -358,7 +358,7 @@ static int write_hint_packets(AVIOContext *out, const uint8_t *data, avio_write(out, data, 2); /* RTP header */ avio_wb16(out, seq); /* RTPsequenceseed */ avio_wb16(out, 0); /* reserved + flags */ - entries_pos = url_ftell(out); + entries_pos = avio_tell(out); avio_wb16(out, 0); /* entry count */ data += 12; @@ -371,13 +371,13 @@ static int write_hint_packets(AVIOContext *out, const uint8_t *data, data += packet_len; size -= packet_len; - curpos = url_ftell(out); + curpos = avio_tell(out); avio_seek(out, entries_pos, SEEK_SET); avio_wb16(out, entries); avio_seek(out, curpos, SEEK_SET); } - curpos = url_ftell(out); + curpos = avio_tell(out); avio_seek(out, count_pos, SEEK_SET); avio_wb16(out, count); avio_seek(out, curpos, SEEK_SET); |