diracdec: check return code of get_buffer_with_edge