diracdec: fix edge emulation check, fixes out of array reads