Improved transparency calculations in BamV1Decoder