DecodeTrace: Replace magic number by proper calculation