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)
This commit is contained in:
Anton Khirnov
2011-03-03 20:11:45 +01:00
committed by Michael Niedermayer
parent 773947ba76
commit 384c9c2fa7
87 changed files with 392 additions and 391 deletions

View File

@ -2809,7 +2809,7 @@ static void event_loop(void)
}else if(cur_stream->audio_stream >= 0 && cur_stream->audio_pkt.pos>=0){
pos= cur_stream->audio_pkt.pos;
}else
pos = url_ftell(cur_stream->ic->pb);
pos = avio_tell(cur_stream->ic->pb);
if (cur_stream->ic->bit_rate)
incr *= cur_stream->ic->bit_rate / 8.0;
else