Bugfix: calculate "final cost" only when block is inter or intra