avcodec/dxv: Check op_offset in both directions