fixed reading of weighted prediction parameters