refined idr duration calculation. changed it to pts based