Use avio_tell() instead of url_ftell()