int64_t url_buffed_pos(AVIOContext *s) { if(!s) return 0; if(s->enabled_lp_buffer) return url_lp_get_buffed_pos(s->opaque); else return s->pos; }
return pos; } int64_t url_buffed_size(AVIOContext *s) { if(!s) return 0; if(s->enabled_lp_buffer){ int64_t buffed=url_lp_get_buffed_pos(s->opaque)-avio_seek(s,0,SEEK_CUR); return buffed > 0 ? buffed :0; }else return 0; }